I need to reset a variable inOldDate which was set as a Date back to null.
In my module1 if have
Public intOldDate As Date
I have a form with a field (AppoinmentDate ) which on gotfocus copies the current value of AppointmentDate to the variabe intOldDate the form has a submit button (save) that compares the difference between intOldDate and the value when the save button is pressed. If the value is different then the currentdate gets written to another field - DateAppointment Set
The problem I have is that the first time they do this its fine. The second time through the previous value remains in intOldDate - I need to be able to reset the variable to Null or whatever the default value should be.
In my module1 if have
Public intOldDate As Date
I have a form with a field (AppoinmentDate ) which on gotfocus copies the current value of AppointmentDate to the variabe intOldDate the form has a submit button (save) that compares the difference between intOldDate and the value when the save button is pressed. If the value is different then the currentdate gets written to another field - DateAppointment Set
The problem I have is that the first time they do this its fine. The second time through the previous value remains in intOldDate - I need to be able to reset the variable to Null or whatever the default value should be.
Comment