In order to run a Select Query in VBA I use the following code.
Dim Mydbs as database, Myrs a srecordset
Set Mydbs= Currentdb
Set Myrs=Mydbs.Openrecordset("qrySelect")
myrs.Movefirst
This "qrySelect" is the name of the query to run (or you could code the query directly in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.