filthepitome
Technical User
I have a user form with two fields
StartDate
EndDate
I have a query that returns results based on this users input into these fields. If the user does not enter a value into the [StartDate] field I would like the query to return everything. I have tried everything I can think of with no luck. This is my most recent attempt
StartDate
EndDate
I have a query that returns results based on this users input into these fields. If the user does not enter a value into the [StartDate] field I would like the query to return everything. I have tried everything I can think of with no luck. This is my most recent attempt
Code:
IIf([Forms]![CS_QueryForm]![DateOpenedStart] Is Null,Between #1/1/1900# And #12/31/3000#,Between [Forms]![CS_QueryForm]![DateOpenedStart] And [Forms]![CS_QueryForm]![DateOpenedEnd])