Most confussed.
Have attached the following code to a form:
Private Sub CmdToday_Click()
Dim TodayDate
TodayDate = Date
Me.InputDate.Value = TodayDate
End Sub
Button works great on my machine, updates the field its meant to. Thing is, on two other machines this code doesn't work. I've even tried adding =Date() to the Default Value in the InputDate field and only get a #Name? returning.
Have also tried a macro using the same function Date(), get an error saying something along the lines of "function doesn't exist....".
All three options work 100% on my machine.
Any clues?
Have attached the following code to a form:
Private Sub CmdToday_Click()
Dim TodayDate
TodayDate = Date
Me.InputDate.Value = TodayDate
End Sub
Button works great on my machine, updates the field its meant to. Thing is, on two other machines this code doesn't work. I've even tried adding =Date() to the Default Value in the InputDate field and only get a #Name? returning.
Have also tried a macro using the same function Date(), get an error saying something along the lines of "function doesn't exist....".
All three options work 100% on my machine.
Any clues?