By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,659 Members | 940 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,659 IT Pros & Developers. It's quick & easy.

Open form based on parent form - auto add PersonID

P: 19
My main Person Form has a button to add accounts. This opens the accounts form in Edit Mode. It is a continuous form.

I have setup my relationships but when The account form opens I would like the PersonID to be automatically populated in the first blank record so that I can add an account, I would also like the next new account to add the same PersonID in the same way that that a Subform would do it. Can anyone help with this?

Thanks
Apr 14 '11 #1

✓ answered by NeoPa

What you need to do is set the .DefaultValue property of the relevant control to the value of the PersonID you have.

Share this Question
Share on Google+
1 Reply


NeoPa
Expert Mod 15k+
P: 31,420
What you need to do is set the .DefaultValue property of the relevant control to the value of the PersonID you have.
Apr 14 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.