Hi guys,
I have a a form that during the On Load event assigns a date to a textbox based on a public function. This public function loops through the records in a certain table and looks for a specific type of record. The function then returns that date to the textbox.
The problem that I'm having is that if a date for the specific type of record exists, it returns the correct date. If it does not exist, then it returns the 'Epoch' date of 12/30/1899.
How do I get the textbox to display nothing instead of the Epoch date if there are no matching records?
sample db is attached. To demonstrate, open it and on the main form, click the "Show Final Visit" button for the first user. On the Show Visit form, the final visit date is 12/30/1899. Close the show visit form and navigate (little blue buttons at the bottom of the main form) to the next user that does have a record with final date.
STNG_Planets.zip