Hi,
I have a button which runs a query and copies the contents to Excel
eg:
strQuery = "MyQueryName"
objDB.Execute _
"SELECT * INTO [Excel 8.0;DATABASE=" & strExcelFile & _
"].[" & strWorksheet & "] FROM " & "[" & strQuery & "]"
objDB.Close
Now I have changed the Query to require a...
Hiya,
Thanks for the tip, Ive done what you said and got it to work, thats fantastic!
If anyone knows what is wrong with my original post let me know though, as i still cant get my head around why it wouldnt work!
Thanks!
Barbara
Hi,
Im Using Access 2003 and I am pretty new to SQL and am struggling to understand why my query wont work. I have 2 tables and I want to return only those rows from the first table where the joint primary key is not in the second.
My code is below, and it returns 0 rows even though I know...
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.