G
Guest
I want to write a public function for about 8 different textboxes.
How can I refer to the name of the textbox so I can referentially change the
code for each textbox, with one generic piece of code?
The code, placed in the before update event would go something like this:
Public Function CheckDateValidity()
Select case NameOfTextBoxI_am_in
case ReceivedDate
msgbox "Custom message for Received date textbox"
case EnteredDate
msgbox "Custom message for Entered Date textbox"
End Select
End Function
How can I refer to the name of the textbox so I can referentially change the
code for each textbox, with one generic piece of code?
The code, placed in the before update event would go something like this:
Public Function CheckDateValidity()
Select case NameOfTextBoxI_am_in
case ReceivedDate
msgbox "Custom message for Received date textbox"
case EnteredDate
msgbox "Custom message for Entered Date textbox"
End Select
End Function