SQL query question (1 Viewer)

jeremypaule

Registered User.
Local time
Today, 10:41
Joined
Aug 21, 2006
Messages
135
I’m pretty new to building and SQL query into VBA, but what is the best way to put a SQL query into VBA?

Do you think it is easier to write it from scratch or build a query in access in design view to see if it works? Then, view it in SQL and reformat it to work in VBA? This is in terms of a HUGE query.
 

KeithG

AWF VIP
Local time
Today, 07:41
Joined
Mar 23, 2006
Messages
2,592
If I am writing a complex query with lots of fields I will usaualy build it with the query builder and paste it into my function and make the modifications. But if it is a small simple query I will usually just write the SQL. Using the query design grid there is less chance for human error.
 

jeremypaule

Registered User.
Local time
Today, 10:41
Joined
Aug 21, 2006
Messages
135
thanks, do you happen to have a SQL Select query with two joined tables that have criteria from form combo boxes? I just want to have some type of template to serve as a road map when I try to make a SQL query. thanks!
 

Users who are viewing this thread

Top Bottom