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  

Forms question



 
 
Thread Tools Display Modes
  #1  
Old January 3rd, 2005, 05:13 PM
Lauren B.
external usenet poster
 
Posts: n/a
Default Forms question

I have a database of providers. Each provider may or may not work with a
vendor, and some may work with the same vendor. I am attempting to create a
tab that contains vendor information if needed.

On my form, I want the Vendor Name field to be a combo box that contains a
drop down of all vendors that exist in the database. When the user selects
one of these from the list, I want the address, phone number, etc. field to
populate with that particular vendor's information. If the user needs a
vendor that is not already in the database, I want them to be able to type
the information in the blank fields. How can I do this?

Thank you for any assistance.



  #2  
Old January 4th, 2005, 12:31 AM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Mon, 3 Jan 2005 12:13:08 -0500, "Lauren B." wrote:

I have a database of providers. Each provider may or may not work with a
vendor, and some may work with the same vendor. I am attempting to create a
tab that contains vendor information if needed.

On my form, I want the Vendor Name field to be a combo box that contains a
drop down of all vendors that exist in the database. When the user selects
one of these from the list, I want the address, phone number, etc. field to
populate with that particular vendor's information. If the user needs a
vendor that is not already in the database, I want them to be able to type
the information in the blank fields. How can I do this?

Thank you for any assistance.



If you're trying to store the vendor information in a separate table,
bewa this is generally a Bad Idea. You could end up with a
situation where a vendor has changed their address (and this change
has been duly made in the Vendor table) but this change will NOT be
automatically reflected in this second table. I'd suggest just storing
the VendorID in this table, and using the NotInList event of the
Vendor combo box to open up a vendor data entry form if a new vendor
is entered. See http://www.mvps.org/access and search for "NotInList"
for sample code.

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access forms question from a newbie Karl Middleton Using Forms 2 July 14th, 2004 11:27 AM
Word Forms? CEVisker New Users 4 June 21st, 2004 01:25 AM
Forms Check Box not working DLLower General Discussion 2 June 17th, 2004 09:34 PM
matching multiple forms on open to form records EdwardA Using Forms 0 June 10th, 2004 06:38 PM
Designing a question paper Ken New Users 2 April 28th, 2004 10:13 PM


All times are GMT +1. The time now is 03:09 AM.


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