Hi,
I am no good at programming access code, but reasonable at designing an access database to produce what I require using its inherent design criteria in the Design View of a query. However I have hit a stumbling block which I would like to overcome, if at all possible.
I have a date field called "EventDate" and I have only occasional use for dates that occur prior to today, and therefore can impose a filter in Design View criteria for that field by using the >Now() expression.
In order to interrogate earlier dates, at the moment, I have to open the relevant query and remove that filter.
To make it easier for myself I put in a question >[Enter earliest start Date] and sure enough I can back or post date the data, but if, when the message box opens, I just hit <Enter> I get nothing. Is there any way I can make it default to >Now() if I just hit <Enter>. i.e. can I put in the relevant line of the design view of the query criteria something like ">[Enter earliest start Date] Or Now()"? I have tried all combinations I can think of, using And, Or and Xor, so far without success.
Many thanks
David
I am no good at programming access code, but reasonable at designing an access database to produce what I require using its inherent design criteria in the Design View of a query. However I have hit a stumbling block which I would like to overcome, if at all possible.
I have a date field called "EventDate" and I have only occasional use for dates that occur prior to today, and therefore can impose a filter in Design View criteria for that field by using the >Now() expression.
In order to interrogate earlier dates, at the moment, I have to open the relevant query and remove that filter.
To make it easier for myself I put in a question >[Enter earliest start Date] and sure enough I can back or post date the data, but if, when the message box opens, I just hit <Enter> I get nothing. Is there any way I can make it default to >Now() if I just hit <Enter>. i.e. can I put in the relevant line of the design view of the query criteria something like ">[Enter earliest start Date] Or Now()"? I have tried all combinations I can think of, using And, Or and Xor, so far without success.
Many thanks
David