Here is an interesting addendum:
Imagine a query like:
VB Code:
'The values for each constant added must increase by a multiple
'of two each time eg: 1,2,4,8,16,32,64,128,
Const CLIENT_PAID_IN_FULL = 1
Const CLIENT_DISCOUNT_APPLIES = 2
Const CLIENT_DEFAULTED = 4
strSQL = "SELECT * FROM Clients WHERE " & _
"(client.statusid and " & CLIENT_PAID_IN_FULL & ") = " & CLIENT_PAID_IN_FULL & " AND " & _
"(client.statusid and " & CLIENT_DISCOUNT_APPLIES & ") = " & CLIENT_DISCOUNT_APPLIES
Instead of defining two (or more fields if otherwise needed), one field handles it all!!!