Link to home
Start Free TrialLog in
Avatar of MICS
MICS

asked on

Running Apped or Update Access Quesry using VisualBasic

I have 2 queries called 'Query_Append' and 'Query_Update' , these are queies made in MS Acces they are of the type APPEND and UPDATE.  How can i run there queries using VisualBasic 6 code?

Thanks,
Avatar of msroberts
msroberts

Have you connected to the database you want to run the queries on?  

ASKER CERTIFIED SOLUTION
Avatar of hmadhur
hmadhur

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry! forgot to mention. You connect by whatever means you want. Either DSN, which I have used, or by using providers.

Madhur
Avatar of MICS

ASKER

Ok. so i tried the example above by hmadhur. and i get the error msg

"Invalid SQL statment; expected 'DELETE','INSERT','PROCEDURE','SELECT', or 'UPDATE'

any ideas?
Avatar of MICS

ASKER

Ok. I fond that I was accessing teh wrong database.


Avatar of MICS

ASKER

Worked Great