Im trying to call a query in Access from VB but am having some problems. Here’s the code:
Dim myQuery As QueryDefs
myQuery("2012Patient_q").Execute
But this doesn’t work. I tried googling it but to no avail. What am i missing here?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The code should probably read like this:
Or, simply put without any intermediate variables: