slhenson said:
I am using MS Access 2000. I have 2 forms. I am trying to pull 2 fields from
the 1st form to automatically populate those fields in the 2nd form when I go
to it from the 1st form.
Three ways (OTTOMH)
1) First form "pushes" entries into second one
DoCmd.OpenForm "SecondForm"
Forms!SecondForm!ControlName = Me.SomeControl
2) Second form "pulls" entries from first form in its Open event
Me.ControlName = Forms!FirstForm!ControlName
3) Set the default value property for control in second form to...
=Forms!FirstForm!ControlName
The first two have the disadvantage that the second form is automatically
"dirtied" so the user will either have to finish creaing a record or know
to use the <Escape> key to cancel. The third option does not dirty the
second form so unless the user actually types something else no record will
be started.