DblClick TodaysDate in Field

Joined
Mar 29, 2008
Messages
3
Reaction score
0
Hi,
I use this code to DblClick TodaysDate in Field or take it out.

Private Sub EnterNameOfControl_DblClick(Cancel As Integer)
If IsNull(EnterNameOfControl) Then
EnterNameOfControl = Date
Else
EnterNameOfControl= Null
End If
End Sub

Does anyone know how would I make this into a Module (Named-DblClickDate) To work like above.
so all I have to put in the DblClk properties of the textBox - the name of the Module
and It will work like the code above.
Thanks BBryan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top