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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a TextBox in a Variable 1

Status
Not open for further replies.

DSTR3

Technical User
Jan 21, 2005
41
US
I'm trying to set the value in a Textbox where the form name changes. I thought this would work.

Dim stWhatForm as String

Forms!stWhatForm!TxtBox = " & Me.TxtBox1 & "

The problem is that the stWhatForm doesn't work.

Help is appreciated.
Thanks
DS
 
DSTR3,
Asuming your doing this in code:
Code:
Forms(stWhatForm)!TxtBox = Me.TxtBox1

Hope this helps,
CMP


[small]For the best results do what I'm thinking, not what I'm saying.[/small]
(GMT-07:00) Mountain Time (US & Canada)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top