A
Anita
I have a module that updates "Last Updated" information when records are
changed. Because this functionality will apply to several forms and/or
subforms, I wanted to use a variable for the form/subform names and call this
procedure from a module instead of recreating the code inside each
form/subform.
What's the correct syntax to get Access to recognize the variable as the
form name? What I've got below doesn't work...
Public Static Sub CreateLastUpdated(strFormName As String)
...
Forms!strFormName!frmLast_Updated![Date].Value = Date
changed. Because this functionality will apply to several forms and/or
subforms, I wanted to use a variable for the form/subform names and call this
procedure from a module instead of recreating the code inside each
form/subform.
What's the correct syntax to get Access to recognize the variable as the
form name? What I've got below doesn't work...
Public Static Sub CreateLastUpdated(strFormName As String)
...
Forms!strFormName!frmLast_Updated![Date].Value = Date