R
rawdstorage
Hi!
I have followed the example on http://www.profsr.com/vb/vbless04.htm.
I get the error msg
Run error nr '2185'.:
It is not possible to refer to a property or method for a control
which is not highlighted/activated/tagged.
When troubleshooting the faulty line is indicated in yellow being:
"ClientName = NameTextbox.Text"
My code is as follows:
Option Compare Database
Option Explicit
Dim ClientName As String
Dim ClientCity As String
Public Sub Load_Form()
ResultLabel.Caption = " "
NameTextbox.Text = " "
CityTextbox.Text = " "
End Sub
Public Sub SubmitButton_Click()
ClientName = NameTextbox.Text
ClientCity = CityTextbox.Text
ResultLabel.Caption = "The client is " & ClientName & " and lives
in " & ClientCity & "."
End Sub
Public Sub CancelButton_Click()
Form_Load
End Sub
Public Sub ExitButton_Click()
Unload Me
End Sub
What does it really mean when a property is not highligted or
activated?
I have followed the example on http://www.profsr.com/vb/vbless04.htm.
I get the error msg
Run error nr '2185'.:
It is not possible to refer to a property or method for a control
which is not highlighted/activated/tagged.
When troubleshooting the faulty line is indicated in yellow being:
"ClientName = NameTextbox.Text"
My code is as follows:
Option Compare Database
Option Explicit
Dim ClientName As String
Dim ClientCity As String
Public Sub Load_Form()
ResultLabel.Caption = " "
NameTextbox.Text = " "
CityTextbox.Text = " "
End Sub
Public Sub SubmitButton_Click()
ClientName = NameTextbox.Text
ClientCity = CityTextbox.Text
ResultLabel.Caption = "The client is " & ClientName & " and lives
in " & ClientCity & "."
End Sub
Public Sub CancelButton_Click()
Form_Load
End Sub
Public Sub ExitButton_Click()
Unload Me
End Sub
What does it really mean when a property is not highligted or
activated?