AndyCompanyZ
Registered User.
- Local time
- Today, 04:55
- Joined
- Mar 24, 2011
- Messages
- 223
I have a DCount on a textbox on a form that is
supposed to pull up the number of delegates scheduled or invited (status 1 or
2) form a table tbleventdelegate. I have the following code:
this only gives me 1 record when there are 2 records one with a
status of 1 and one with 2. I tried 1 or 2 but that brought up all the
records and I tried 1,2 but that gave me a #type error in the box. I even
tried 1 +2 but that only gave me 1 result on one record of the tbale
presumably because there is a record with a status of 3 for it. I'm sure this is an easy solution but I can't find the answer I have been looking all day. Thanks in advance to anyone
supposed to pull up the number of delegates scheduled or invited (status 1 or
2) form a table tbleventdelegate. I have the following code:
Code:
=DCount("[Status]","tblEventDelegate","[EventID]=" & [Forms]!
[frmMainNavigation]![NavigationSubform]![EventID] & "AND [Status]=1 and 2")
status of 1 and one with 2. I tried 1 or 2 but that brought up all the
records and I tried 1,2 but that gave me a #type error in the box. I even
tried 1 +2 but that only gave me 1 result on one record of the tbale
presumably because there is a record with a status of 3 for it. I'm sure this is an easy solution but I can't find the answer I have been looking all day. Thanks in advance to anyone