As an example, I tried making a simple form that combines two strings from different text boxes and put it into a third with a button click, but I get an error, specifically "Run-time error '2185': You can't reference a property or method for a control unless the control has the focus."
Here's the code I wrote to control the three text boxes(txtFirstName, txtLastName and txtFullName) and the button(stringButton):
Option Compare DatabaseI don't know how to make these objects visible outside their own subroutines since I don't have a say as to where they're created. My only language experience is JAVA so I'm at a loss here. Any help would be greatly appreciated.
Public Sub stringButton_Click()
txtFullName.Text = txtFirstName.Text & " " & txtLastName.Text
End Sub
Thanks,
Tim