Connecting Tech Pros Worldwide Help | Site Map

Customer Lookup

  #1  
Old February 27th, 2007, 06:55 PM
dancole42@gmail.com
Guest
 
Posts: n/a
I'm self-taught in Access, and as such I'm missing large chunks of
knowledge, so I'm hoping someone here with some training can help me.

Right now I have an Invoice form with a Customer subform.

Right now it's set up so that someone can enter a customer ID, say,
12345, into the invoice form and customer 12345's name, address, etc.
shows up in the Customer subform.

How do I create a system where a user could start a new invoice, then
go over to the Customer subform and type the letter A into the last
name field, then a list of all customers with last names starting with
A pops up, the users clicks on the name they want, and then the
Customer subform gets filled in THAT way, rather than having to know
the exact customer ID?

Ideally I'd have filters for Last Name and Company Name.

Then if they don't find what they're looking for, they can just create
a new customer record.

Your help is appreciated! Thanks!

  #2  
Old February 28th, 2007, 10:45 AM
Nbene
Guest
 
Posts: n/a

re: Customer Lookup


Hi self-taught! :)

not sure exactly what you have currently but the way i would work this
is to have a combo box which looks up the list of customers and you
select them that way.

try that first.

use the wizard (good tool) to make a combo box on the form to look
up customer name.

Also make a switchboard, one button to open a form to add an invoice,
one button to open a form to add a customer.

Not quite sure what the relationship is between the two but i imagine
that it is 1 Customer to MANY invoices.

N


On Feb 28, 2:45 am, dancol...@gmail.com wrote:
Quote:
I'm self-taught in Access, and as such I'm missing large chunks of
knowledge, so I'm hoping someone here with some training can help me.
>
Right now I have an Invoice form with a Customer subform.
>
Right now it's set up so that someone can enter a customer ID, say,
12345, into the invoice form and customer 12345's name, address, etc.
shows up in the Customer subform.
>
How do I create a system where a user could start a new invoice, then
go over to the Customer subform and type the letter A into the last
name field, then a list of all customers with last names starting with
A pops up, the users clicks on the name they want, and then the
Customer subform gets filled in THAT way, rather than having to know
the exact customer ID?
>
Ideally I'd have filters for Last Name and Company Name.
>
Then if they don't find what they're looking for, they can just create
a new customer record.
>
Your help is appreciated! Thanks!

  #3  
Old February 28th, 2007, 02:25 PM
dancole42@gmail.com
Guest
 
Posts: n/a

re: Customer Lookup


Thanks, N!

I thought about that, but 4,000+ customers is a lot to have in a combo
box :)

And yes, 1 customer to many invoices.


  #4  
Old March 5th, 2007, 05:15 AM
Don Leverton
Guest
 
Posts: n/a

re: Customer Lookup


Hi,

I haven't posted in this group for a couple of years now, but felt like
"chiming in" here because I was also self-taught starting with Access 2.0.
I'm still happily churning out small apps for my own use, and still using
Access97 on Win XP :)
================================================== =============
Anyway ... to get to the topic:

IMHO, the best way to design a form like this is to follow the same layout
as the data you are entering ...
in other words use the same 1-to-Many structure as the tables that the form
is based on.

The main form should be frmCustomers, and should include 2 subforms: (1
Customer =Many Invoices)
sbfInvoice (1 Invoice =Many Items)
sbfInvoiceItems

This strategy would allow you to find (or add) a customer.
View previous (or add new) invoices.
View previous (or add new) invoice items.

You could use a combo-box (cboCustomer) to "lookup" an existing customer
(sorted by "LastOrCompanyName".)
You could use the combo box's NotInList event to add a new record without
having to re-type.

sbfInvoice could include code, and be designed to go to a new record by
default ...
but still have the ability to scroll upward to view previous invoices.
(sbfInvoice uses "CustID" in the LinkMaster and LinkChild, and the CustID
from the main form gets inserted into new records automatically)

sbfInvoiceItems (datasheet style) could use a combo-box to lookup and insert
existing stock items along with pricing.
(Yes, a datasheet-style form CAN use a combo-box.) <smile>
(sbfInvoiceItems uses InvoiceID in the LinkMaster and LinkChild, and the
InvoiceID from "sbfInvoice" gets inserted into every new record
automatically)

Think "flexibility" when doing form design.
Draw out your ideas on paper, first ... then design your form.

One more thing ... you CAN put subforms and associated command buttons on a
tab control.
Doing so maximizes the useability of the form and reduces confusion ... as
long as the design is well-planned and the user interface is intuitive.

HTH,
Don


<dancole42@gmail.comwrote in message
news:1172601957.165957.223880@h3g2000cwc.googlegro ups.com...
Quote:
I'm self-taught in Access, and as such I'm missing large chunks of
knowledge, so I'm hoping someone here with some training can help me.
>
Right now I have an Invoice form with a Customer subform.
>
Right now it's set up so that someone can enter a customer ID, say,
12345, into the invoice form and customer 12345's name, address, etc.
shows up in the Customer subform.
>
How do I create a system where a user could start a new invoice, then
go over to the Customer subform and type the letter A into the last
name field, then a list of all customers with last names starting with
A pops up, the users clicks on the name they want, and then the
Customer subform gets filled in THAT way, rather than having to know
the exact customer ID?
>
Ideally I'd have filters for Last Name and Company Name.
>
Then if they don't find what they're looking for, they can just create
a new customer record.
>
Your help is appreciated! Thanks!
>

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modeling of Lookup Values and ORM Nate answers 1 July 21st, 2006 09:25 AM
combo box lookup problem linda answers 9 April 3rd, 2006 08:25 PM
Problem with ComboBoxes data bound to lookup tables mjsterz@gmail.com answers 0 March 14th, 2006 08:05 PM
Tranfer Data from Combobox lookup to new record in another table JC Mugs answers 3 November 12th, 2005 06:25 PM