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

Bring info from main form to subform

Status
Not open for further replies.

mstekkie

Technical User
May 15, 2002
51
CA
My main form displays company information. When I click on the 'view employees' button, the employees information form pops up. When I want to add a new employee, the firm number from the main form should appear on the employees form without having to be typed in.

I've tried the example that was posted in some other threads but it doesn't work.

Hopefully someone can help me.

Thank you :)
 

If the main form is still open when your employees form opens you can put on open of the employees form


me!firmId = forms!mainform!firmid

if it doesn't there are many and varied options to provide a solution

eg public variable
dlookup function
recordset find thru ADO or DAO

hope this helps - if you need to use one of the above post it and I will oblige

regards

Jo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top