I have a form with a date field that doesn't check if an actual date has been entered - and won't check with my coding. It lets you type anything into it.
I initialise the form by setting the fields to empty, and the code for the DATE field is as follows:
txtDOB.Text = Format (Now - (365.25 * 18), "dd/mm/yy")
I tried to define a keyword other than Text for this field, but there was no Date option
I've included an error handling routine to check that a proper date has been entered, but since I think my first statement dictates the field's content, it doesn't work either.
When the fields are filled, I have coding to transfer data to the spreadsheet and that works fine.
I hope this is enough information.
I greatly appreciate your help!
Kind regards,
Lori Hughes
I initialise the form by setting the fields to empty, and the code for the DATE field is as follows:
txtDOB.Text = Format (Now - (365.25 * 18), "dd/mm/yy")
I tried to define a keyword other than Text for this field, but there was no Date option
I've included an error handling routine to check that a proper date has been entered, but since I think my first statement dictates the field's content, it doesn't work either.
When the fields are filled, I have coding to transfer data to the spreadsheet and that works fine.
I hope this is enough information.
I greatly appreciate your help!
Kind regards,
Lori Hughes