Hi,
I have a query which results in a single total representing the number of days absent relating to an employee.
I have embedded the query in my Employee form and I have managed to pass the Total number to a text box using this code.
Absent_Days.Value = [Absent_Days_Query]![SumOfQty_Half_Days]
But, when the query doesnt return any results, I am getting the following Error...
Runtime Error '2113' - The value you entered isnt valid for this field.
I can catch it with an Error Handler, but I want the code to put a 0 (zero) in my text box. I cant seem to get it to work.
Any suggestions ?
Al
I have a query which results in a single total representing the number of days absent relating to an employee.
I have embedded the query in my Employee form and I have managed to pass the Total number to a text box using this code.
Absent_Days.Value = [Absent_Days_Query]![SumOfQty_Half_Days]
But, when the query doesnt return any results, I am getting the following Error...
Runtime Error '2113' - The value you entered isnt valid for this field.
I can catch it with an Error Handler, but I want the code to put a 0 (zero) in my text box. I cant seem to get it to work.
Any suggestions ?
Al