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
 
Back
Top