A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Populating a form from a diff table



 
 
Thread Tools Display Modes
  #1  
Old December 27th, 2006, 09:40 PM posted to microsoft.public.access.forms
steph44haf
external usenet poster
 
Posts: 46
Default Populating a form from a diff table

If I type in a vendor number in my products form - can I get the vendor name
to pop up on the form (withought having to type it)? People will be entering
the data into the form, but to keep it efficient they only need to enter the
vendor number, but I would like the form to then show the corresponding name
so that they can check themselves.

Let me know.

Thanks,

Stephanie
  #2  
Old December 27th, 2006, 11:46 PM posted to microsoft.public.access.forms
John Vinson
external usenet poster
 
Posts: 4,033
Default Populating a form from a diff table

On Wed, 27 Dec 2006 13:40:01 -0800, steph44haf
wrote:

If I type in a vendor number in my products form - can I get the vendor name
to pop up on the form (withought having to type it)? People will be entering
the data into the form, but to keep it efficient they only need to enter the
vendor number, but I would like the form to then show the corresponding name
so that they can check themselves.

Let me know.

Thanks,

Stephanie


Easily. Use a Combo Box to enter the vendor number and put a textbox
next to it; include the vendor name in the combo's Row Source query;
set the control source of the textbox to

=comboboxname.Column(1)

to display the *second* column of the rowsource (it's zero based).

Or, you could even use two combos, one displaying the vendor number,
the other the vendor name; the name combo will autocomplete so it's
probably even easier than memorizing and entering the number, and you
can see the vendor both by name and by number.

John W. Vinson[MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.