AFKillbait
Registered User.
- Local time
- Today, 06:47
- Joined
- Aug 8, 2009
- Messages
- 27
I created a form to display a number of training dates based on a query that combines two of my tables. In the query I used an expression to automatically enter "N/A" into any fields that didn't have dates in them. After I created the form I created several text boxes with the DateAdd expression:
=DateAdd("m",12,[Field Name])
to display the due dates for the associated training. So long as there is a date in the query date box it displays the due date just fine, but if the box is displaying "N/A" I get "#Error" displayed. Is there a way to get the Due Date box to also display "N/A" like the original date box?
The other problem I am having is that the query date box only displays the dates in Short Date format, and I would like them displayed in Medium Date, is it possible to do that with the following expression?
nDate:Nz(YourDateField,"N/A")
=DateAdd("m",12,[Field Name])
to display the due dates for the associated training. So long as there is a date in the query date box it displays the due date just fine, but if the box is displaying "N/A" I get "#Error" displayed. Is there a way to get the Due Date box to also display "N/A" like the original date box?
The other problem I am having is that the query date box only displays the dates in Short Date format, and I would like them displayed in Medium Date, is it possible to do that with the following expression?
nDate:Nz(YourDateField,"N/A")