Yeh but isn't QueryDef an old DAO object? I take it there is no ADO equiv?
I was previously using an ADO command and had linked tables however the problem I'm having is with dates because I'm in the UK.
If for example I run a command with the date 13/12/2007 (uk format) this works fine, however when I do something like 01/05/2007, access see's this as 05/01/2007 and this is how my MySQL DB see's it also. It's very frustrating however putting the actually SQL into a pass through works just fine!
I'm probably not making much sense, sorry stressed out, on a deadline!
Always use non ambiguous dates, like #2007-05-01# ...
If your passthru query is a saved query then you'll find it in the CurrentDb.QueryDefs collection.
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.