G
Geraint
Hi,
I want to write a module function that outputs an address to a text box.
The text boxes are on a number of forms so I feel that a function would be
best.
Function PopulateAddress(formName As Form, txtBoxName As TextBox)
formName!txtBoxName = "Address Details will go here!"
End Function
I know how to reference the form bit I'm not sure how to reference the text
box when calling the above function.
Private Sub Command0_Click()
PopulateAddress Me.Form, text1?
End Sub
Thanks,
Geraint
I want to write a module function that outputs an address to a text box.
The text boxes are on a number of forms so I feel that a function would be
best.
Function PopulateAddress(formName As Form, txtBoxName As TextBox)
formName!txtBoxName = "Address Details will go here!"
End Function
I know how to reference the form bit I'm not sure how to reference the text
box when calling the above function.
Private Sub Command0_Click()
PopulateAddress Me.Form, text1?
End Sub
Thanks,
Geraint