dbTalk Databases Forums  

MS Access Primary Field on form lookup

comp.databases.ms-access comp.databases.ms-access


Discuss MS Access Primary Field on form lookup in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
eighthman11
 
Posts: n/a

Default MS Access Primary Field on form lookup - 01-25-2011 , 03:52 PM






I am creating one of my first databases and definetly my first in
Access 2007. This might not be possible but here it goes. I have
several maintenace forms I need to create. Each of these forms has a
related table with a primary key. One of these tables is a "Customer"
table with the primary key being the "CustomerCode"

On the form for data entry I would like to have the "CustomerCode" do
the following
1) Have a lookup so I can easily go to what ever customer I choose
for editing.
2) If the user enters a Customer Code that is not in the system then
the form automatically
knows this is a new record, clears the old data from the form and
allows the user to enter
the new record.
3) User enters a Customer Code that does exist then the record is
retrieved for viewing and
or editing.

Am I asking to much from the system and is this even possible. Any
help appreciated.

Ray

Reply With Quote
  #2  
Old   
Access Developer
 
Posts: n/a

Default Re: MS Access Primary Field on form lookup - 01-25-2011 , 04:49 PM






The Combo Box Wizard gives you options that do what I think you are asking
for. In the Controls toolbar be sure you have the "magic wand" icon
selected, then click on the Combo Box icon, move your cursor to
approximately where you want it on the Form, and click, then follow the
instructions in the dialog.

Larry Linson
Microsoft Office Access MVP

"eighthman11" <eighthman11 (AT) yahoo (DOT) com> wrote

Quote:
I am creating one of my first databases and definetly my first in
Access 2007. This might not be possible but here it goes. I have
several maintenace forms I need to create. Each of these forms has a
related table with a primary key. One of these tables is a "Customer"
table with the primary key being the "CustomerCode"

On the form for data entry I would like to have the "CustomerCode" do
the following
1) Have a lookup so I can easily go to what ever customer I choose
for editing.
2) If the user enters a Customer Code that is not in the system then
the form automatically
knows this is a new record, clears the old data from the form and
allows the user to enter
the new record.
3) User enters a Customer Code that does exist then the record is
retrieved for viewing and
or editing.

Am I asking to much from the system and is this even possible. Any
help appreciated.

Ray

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.