Skip to content
Advertisement

VBA SQL Access DB Query Date Statement

I’m using VBA to connect to a Access Database. Having some problems when running date criteria for a query.

I have a cell (C7) with a date in it, and I want to query results based on that date, below is my code:

No Errors are given, but no results are given, if I take the output from the variable query and run it directly into access the results are there. What might be happening?

Advertisement

Answer

Try a different date format:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement