Tom Knight
New member
- Local time
- Today, 23:53
- Joined
- Apr 29, 2003
- Messages
- 6
Hi, I'm using a form to generate criteria for a query column that contains a date, the problem is that i only want a criteria generated if a field contains a value. If the field is empty I want the query to show all records
I've entered the following...
CRITERIA: IIf(IsNull([Forms]![Find_Record_Form]![Purchased_From2]), ,Between [Forms]![Find_Record_Form]![Purchased_From2] And [Forms]![Find_Record_Form]![Purchased_To2])
i'm looking for something to fill the gap which will do the job. If it was a text field i could use Like and put "*" in the gap but this doesn't work with dates.
Can anyone help?
Thanks, Tom.
I've entered the following...
CRITERIA: IIf(IsNull([Forms]![Find_Record_Form]![Purchased_From2]), ,Between [Forms]![Find_Record_Form]![Purchased_From2] And [Forms]![Find_Record_Form]![Purchased_To2])
i'm looking for something to fill the gap which will do the job. If it was a text field i could use Like and put "*" in the gap but this doesn't work with dates.
Can anyone help?
Thanks, Tom.