Randomblink
The Irreverent Reverend
- Local time
- Today, 05:13
- Joined
- Jul 23, 2001
- Messages
- 279
I am building a popup menu for a form in my database.
What I would like to do, is...
When a user moves the cursor into a date field, I would like to right-click and drop the current date into that field...
________________________________________________
Public Function DropDate(ctl as Control)
On Error Goto Err_DropDate
ctl.Value = Now()
Exit_DropDate:
Exit Function
Err_DropDate:
Msgbox Err.Description
Resume Exit_DropDate
End Function
________________________________________________
Then, I add the Function DropDate to the Popup Menu...
What am I doing wrong...?
What I would like to do, is...
When a user moves the cursor into a date field, I would like to right-click and drop the current date into that field...
________________________________________________
Public Function DropDate(ctl as Control)
On Error Goto Err_DropDate
ctl.Value = Now()
Exit_DropDate:
Exit Function
Err_DropDate:
Msgbox Err.Description
Resume Exit_DropDate
End Function
________________________________________________
Then, I add the Function DropDate to the Popup Menu...
What am I doing wrong...?