GinaWhipp
AWF VIP
- Local time
- Yesterday, 19:25
- Joined
- Jun 21, 2011
- Messages
- 5,899
Okay, so I got the WHERE clause to work but there is a problem...
But 50% of those fields are DLookup's and they will (and are) error out after resting the Record Source. Can't just use ApplyFilter because it can't find the all the Status and if they are on the FOrm, well, with the way those fields are named I couldn't find them. (In your spare time you want to give those fields names that anyone can understand. Text1 thru whatever makes it difficult for one to write code.)
My suggestion, if the query works, then use it...
Code:
WHERE (((CIAC_DATA.Sailor_Status)= '" & Me.MOB_SAIL_STATS & "') OR ((CIAC_DATA.Assigned_CIAC_Name)= '" & Me.Process_CIACs & " ') OR ((IIf([status(1)]='S' Or [status(2)]='S' Or [status(3)]='S' Or [status(4)]='S','YES','NO'))='NO'))"
But 50% of those fields are DLookup's and they will (and are) error out after resting the Record Source. Can't just use ApplyFilter because it can't find the all the Status and if they are on the FOrm, well, with the way those fields are named I couldn't find them. (In your spare time you want to give those fields names that anyone can understand. Text1 thru whatever makes it difficult for one to write code.)
My suggestion, if the query works, then use it...