vmccune
asked on
DCount using "OR"
I am trying to use a dcount function with an "OR" statement and I am not having much luck. I am not even sure if or is permissible.
Here is my statement.
Me.SessionNumber = Nz(DMax("SessionNumber", "tblSessions", "[VisId]=" & [Forms]![frmVisits00]![frm Visits01]. [Form]![vi sid] & " AND [SessionType] = 'Group' OR 'Group-Other'")) + 1
For just GROUP it works fine. for GROUP or GROUP-OTHER it then counts across the entire domain instead of just the VisId.
Thanks
Here is my statement.
Me.SessionNumber = Nz(DMax("SessionNumber", "tblSessions", "[VisId]=" & [Forms]![frmVisits00]![frm
For just GROUP it works fine. for GROUP or GROUP-OTHER it then counts across the entire domain instead of just the VisId.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The two answers combined gave it to me. Thanks!
ASKER