tomhughes (Vendor) 16 Feb 07 9:38
I am trying to concatenate an object name with a string Variable. The last letter of the Text Box name changes. If I hard code the letter in the name the string returns the proper value.
This text string returns the proper value.
I need to use a string variable to change the last letter of the name.
I have tried numerous string arrangements, with no success, it would seem to me that this string arrangement should work.
but it gives me the following error
Run-time error '2465'
Application-defined or object-defined error
There has got to be a way of doing this. Does anyone know how???
I am trying to concatenate an object name with a string Variable. The last letter of the Text Box name changes. If I hard code the letter in the name the string returns the proper value.
This text string returns the proper value.
Code:
str = " '" & Forms!frmMain.TopicHead[b][COLOR=red]A[/color] [/b]& "'"
I need to use a string variable to change the last letter of the name.
I have tried numerous string arrangements, with no success, it would seem to me that this string arrangement should work.
Code:
strTabNo = "A"
str = '" & Forms!frmMain.TopicHead & strTabNo & "'"
but it gives me the following error
Run-time error '2465'
Application-defined or object-defined error
There has got to be a way of doing this. Does anyone know how???