Opening forms from another form entry

  • Thread starter Thread starter Mr Toua
  • Start date Start date
M

Mr Toua

I want to create a button to open a form (second form) to add new data into
that form base off the current entry that I am in on another form (first
form).

Additional Information: These two tables have a one-to-many relationship.
(first form) one-to-many (second form)
 
When you open the second form, open it using "acFormAdd" as the mode
parameter, and pass it the ID value of the current record in your main form
in the OpenArgs parameter.

Then, in the current event (depending on how you open the form, you might
want to test to confirm you are on a new record) of the second form, set the
value of the ID control to the OpenArgs parameter.


--
HTH
Dale

Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.
 
Back
Top