Got an unbound textbox holding a date with an onChange that updates the WHERE clause in the RecordSource to show only records for the set date.
Works perfectly if the DatePicker is used, however, if the user enters the date by hand with each keystroke I get an error msg.
WOULD YOU...
1) dump the onChange and add a "Set" button to call the function that onChange executed?
2) add code to the onChange that doesn't let the variable pass thru to the WHERE clause & the requery UNTIL it's a full/legitimate date... ie, return focus to the textbox until the user is finished typing?
3) something else?
Thanks
Works perfectly if the DatePicker is used, however, if the user enters the date by hand with each keystroke I get an error msg.
WOULD YOU...
1) dump the onChange and add a "Set" button to call the function that onChange executed?
2) add code to the onChange that doesn't let the variable pass thru to the WHERE clause & the requery UNTIL it's a full/legitimate date... ie, return focus to the textbox until the user is finished typing?
3) something else?
Thanks