473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Customer Lookup

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!

Feb 27 '07 #1
3 2362
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:
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!

Feb 28 '07 #2
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.
Feb 28 '07 #3
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
<da*******@gmail.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
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!

Mar 5 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Lucas Lemmens | last post by:
Dear pythonians, I've been reading/thinking about the famous function call speedup trick where you use a function in the local context to represent a "remoter" function to speed up the 'function...
9
by: Koen | last post by:
Hi all, My application uses a lot of lookup tables. I've splitted the frontend (forms, reports, etc) from the backend (data). The database has around 10 different users. The values in the...
3
by: my-wings | last post by:
I've been reading about how evil Lookup fields in tables are, but I've got to be missing something really basic. I know this subject has been covered before, because I've just spent an hour or two...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
1
by: Blue Lagoon Products - Customer Services | last post by:
Hi, We have an inhouse database that I designed in access 2000 with the help of all you guys some time ago. It stores orders and prints packing slips etc. I would like to put onto the packing...
2
by: jwolfley | last post by:
I'm a complete noob so excuse my ignorance. I'm looking for a simple drop down list on a form that limits the choices to foldernames that relate to the customer. I have three tables named...
13
by: paul.joseph.davis | last post by:
Hi, I've just had my first encounter with two-phase lookup and I'm scratching my head a bit. The idea behind two phase look up is pretty easy to understand, but I have a case that fails to...
11
by: ianoble | last post by:
I've been trying to piece together various code snippets to create a lookup table inside my xslt without the need for a supplemental xml file. Here is what I have so far. As of now, it does not...
1
by: joeino | last post by:
I want to do a lookup query and append the record to a history table before editing the data. I created a macro to run the lookup query to append the record to history and it works fine. I did the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.