I have a sub form in MS Access 2010 that is based on a couple of textboxes on the main form. One of those textboxes is for the user to enter a date value.
In the query I have a date field where the criteria is set for that text box. The issue is that sometimes the user doesn't know the date and leaves it blank. Instead of getting all dates for the person on the main form it returns nothing. I tried adding a column that referred to that textbox and set the criteria = Null and set that criteria in a different row then the date field so in SQL my query looks like
Select field1,field2,...
From MyTable
Where entereddate = forms!myform!dtvalue Or forms!myform!dtvalue Is null..
I have the main form and subform linked on the memberid but as soon as I add that to the query save and test MS Access crashes and exits.
Any thoughts?