Hwen I do this:
DoCmd.RunSQL "SELECT ANP01D_ANRG.RGNR, ANP01D_ANRG.RGRCSTCD, ANP01D_ANRG.RGNM, ANP01D_ANRG.VSNR, ANP01D_ANRG.RGTLNR, ANP01D_ANRG.RGMGNM, ANP01D_ANRG.RGMGNMVN, ANP01D_ANRG.RGMGNMAN FROM ANP01D_ANRG WHERE (((ANP01D_ANRG.RGRCSTCD)=1));"
It gives an error "SQL...
How can I - excuse my ignorance - run a select query from a module?
I want to run the query a couple of times on different database libraries (on a AS400 through ODBC). It works as a seprate query, but I want to run it from a module on different tables.
query:
SELECT ANP01D_ANVS.VSNR...
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.