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

stting focus on a form aswell as updating data.

Status
Not open for further replies.

kingz2000

Programmer
May 28, 2002
304
DE
hi,

using Access 2003, if I am using one Form.Is it possible to open another form and update this new form with a certain piece of data by pressing a button on the prior form?? How do I do that?

The 2nd form is linked to a data table, but I don't know how to set foucs on it from my 1st Form, and then to leave the Form on the particular dataset I want.

Thanks in advance
 
You can do this with code, for example:

Code:
Sub ClickMe_Click()

DoCmd.OpenForm "frmSecond"
Forms!frmSecond!txtNewData=Me.txtData
DoCmd.Close, acForm, "frmSecond"

However, if all you wish to do is update a table, considere running SQL from code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top