copy field content to a second form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a main form with account number.
I want to copy that account number into the account field on the second form.
I click a button on the main form to bring up the second form.
I can not figure out how to copy the contents (account number) to the
account number field on the second form.
Help please.
 
I can think of a couple ways to do this, but would need more information to
know which one is best. Given what you wrote, I'd say that you can put a
line in the second form's Open Event that says something like...
me!txtAcctNumber=Forms!NameOfFirstForm.txtAcctNumber
 
I am sorry I don't know what more information you want? But here goes.
I added the code in the Open Event on the second form and then I get an
error that said. Open form cancelled.

I just want to copy the contents of [account] field on the main form...
and paste the account number in the field [account] on the second form
when I click the button on the main form that opens the second form.

What I want to happens on the second form is adding an order to the client
listed on the main form. That way we have our connection between client and
order.

I do not want the person placing the order to manually copy the account
number from the main screen (after they look up the client) then manually
type the account number on the second form.

I hope this helps
 
Back
Top