Populate Combo Box selection to field

  • Thread starter DJ Notion via AccessMonster.com
  • Start date
D

DJ Notion via AccessMonster.com

Hello.

I have a form with a combo box called username. The user selects their name,
enters a password, and clicks OK. Upon clicking OK, my second form opens.
On that second form I want to show the username selected in a field.

Any help is apprecaited. Thanks.
 
J

Jeff Boyce

One option would be to keep the password form open, but hide it. Then you
could refer to the username on that form in your second form with something
like:

=Forms!YourPasswordForm!cboYourUserName.Column(1)

in the Control Source of a textbox on that second form.

(NOTE: this assumes your combo box on form1 has UserID as the first field,
and UserName as the second)

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
D

DJ Notion via AccessMonster.com

Thanks Jeff. Worked like a charm.


Jeff said:
One option would be to keep the password form open, but hide it. Then you
could refer to the username on that form in your second form with something
like:

=Forms!YourPasswordForm!cboYourUserName.Column(1)

in the Control Source of a textbox on that second form.

(NOTE: this assumes your combo box on form1 has UserID as the first field,
and UserName as the second)

Regards

Jeff Boyce
Microsoft Office/Access MVP
[quoted text clipped - 4 lines]
Any help is apprecaited. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top