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

Opening a form and entering data from another form 2

Status
Not open for further replies.

melt333

Technical User
Sep 26, 2002
12
0
0
GB
Hi,

I am trying to move from one form to another, bringing the value in a combobox on the first form, to a textbox on the second form. This is probably a simple task, but I have been trying with no success.

Any ideas?

Your help is much appreciated,

Mark
 
There are several ways to do it, but perhaps the easiest is to leave the first form open and set the Control Source property of the text box to something like:

=Forms!Form1![Combo1].[Column](1)
 
Hi

If both forms are open then in the on open event of the second form

txtBox = Forms!MyForm1.cboMyCombo

using your own appropiate names of course.

If first form closes after openning second form then you could use openargs (see help) Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
 
Doh, that was easy!!

But now I have a new problem. Nothing works on the second form except the close window button.

Help!!

Cheers,

Mark
 
Ignore the last remark - I had surpassed all levels of stupidness, but have now come through it to a stable state of confusion.

Thanks very much for all your help.

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top