H
Helen
Two forms need command buttons to do the same thing. The code was working
perfectly on one form, so copied it over to the other.
Get error 2465 = Can't find the field 'Day' in your expression.
Relevant code:
Dim Default as date
Dim DDay as integer
Default = Int(Now())
DDay = Day(Default) --------------this line is highlighted by the debugger
If today is the 15th of May, one form works fine: Default = 15/5/09, DDay = 15
The other form gives the error. Default shows as above, but "Day(Default)"
in the watch zone shows the error. There is no field called "Day" on the
second form.
I'm perplexed.
perfectly on one form, so copied it over to the other.
Get error 2465 = Can't find the field 'Day' in your expression.
Relevant code:
Dim Default as date
Dim DDay as integer
Default = Int(Now())
DDay = Day(Default) --------------this line is highlighted by the debugger
If today is the 15th of May, one form works fine: Default = 15/5/09, DDay = 15
The other form gives the error. Default shows as above, but "Day(Default)"
in the watch zone shows the error. There is no field called "Day" on the
second form.
I'm perplexed.