Multiple WHERE conditions

Cowboy

Registered User.
Local time
Today, 12:50
Joined
Jul 23, 2010
Messages
53
I am trying to write an SQL statement with multiple conditions.

Can I write it as:

Code:
SELECT * FROM table WHERE condition1, condition 2, condition 3

Or should it be:

Code:
SELECT * FROM table WHERE condition1 AND condition 2 AND condition 3

Or something else completely?

Thanks!
 
The second:

WHERE Field1 = 123 AND Field2 = 'ABC' AND Field3 = #9/2/10#
 
Awesome! Thanks so much.

When I set a record set to that and return a rs with rows of quantities I want to sum, can I just do the following?

Code:
DSum(rsfield, rs)

Thanks again!
 
I don't think so; I believe the second argument has to be a table or saved query.
 

Users who are viewing this thread

Back
Top Bottom