A
advertising
Hello,
I am trying to assign a value to a textbox on the form.
Both the value and the textbox names are passed as variables.
I am calling a public sub which populates the textbox on the form, but
I am getting nowhere.
The code I am currently using is:
Public Sub KeywordReplace(ByVal strfieldname As String, ByVal
strKeyword As String)
'This is the textbox fieldname
frm.ActiveControl.Name =strfieldname
'This is the value to populate the textbox
frm.ActiveControl.Text = strKeyword
End Sub
I have tried other combinations, but haven't got anywhere. The code is
VB.NET.
Please could someone help.
Thanks in Advance,
Dean Richardson
I am trying to assign a value to a textbox on the form.
Both the value and the textbox names are passed as variables.
I am calling a public sub which populates the textbox on the form, but
I am getting nowhere.
The code I am currently using is:
Public Sub KeywordReplace(ByVal strfieldname As String, ByVal
strKeyword As String)
'This is the textbox fieldname
frm.ActiveControl.Name =strfieldname
'This is the value to populate the textbox
frm.ActiveControl.Text = strKeyword
End Sub
I have tried other combinations, but haven't got anywhere. The code is
VB.NET.
Please could someone help.
Thanks in Advance,
Dean Richardson