Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Testing for name of a Frame Control

Status
Not open for further replies.

batteam

Programmer
Sep 12, 2003
374
US
I have a form with many frame controls on it. I am storing a portion of the Frame contol's name in a table along with that frame's value, i.e.: 1701 | 2 | ; these values refer to fra1701 with a value of 2 on my form. When I read out this row from my table, I want to concatenate "fra" & 1701 to get the name of that control (fra1701 on my form), thus have it valued on my form as follows:
varFrameValue = 2
varFrameName = 1701
varFrameNameFinal = "fra" & varFrameName
varFrameNameFinal.Value = varFrameValue

I get an error with this code, indicating that the method (.value) cannot be found, so I'm looking for a way to assign a variable with the .value method of the frame control. If this can't be done, I will have to do a big Select Case stmt that would interegate every frame control on my form and compare it to varFrameNameFinal, and repeat for every row I bring in from my table.

Any help would be appreciated. Thanks.
 
That seemed to do the trick. Thanks so much for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top