Is this possible?
I would expect to see 4 tables
Locations
Customers
Orders
OrderDetails
It's easier to use an autonumber for the Customer Primary Key in the
customers table.
Use a separate field (usually text) for the customer number. You can put a
unique indes on the customer number field.
Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
"carrot_top" <carro...@discussions.microsoft.com> wrote in message
news:992A20E0-3F3B-4062...@microsoft.com...
--
Build a little, test a little.
Jeanette: I still need a way to enter multiple new customers (also: new
customers only need one order, so I don't need to input multiple orders at
that point). I could show current customers with a drop down if I wanted
(there are hundreds though so it doesn't strike me as a useful way of doing a
second order - I think I would need a search function of some sort for
that...but haven't got there yet, that is the next step, just trying to take
it one bit at a time!). The customers are identified with a unique number,
which is what relates the two tables. I can probably make another table for
orders as you suggest as well, but again, that is the next stage to be
tackled. I have a vague vision of perhaps having a switchboard where one
chooses to enter a new customer or enter another order.
Am I perhaps making it too complicated? Any suggestions of how I can better
accomplish any of this would be welcome as well :) ...this is just what I've
worked out through trying to understand the way my users think (not
logically)...
I need to keep this super simple - my users are not the type to listen to
instructions so it needs to be very automated as well!
"Jeanette Cunningham" wrote:
> .
>
Perhaps you wish to give users a listbox where they can select as many
customers as they need, and then you can write some code to add the dame
order to each of the selected customers?
Does this sound like a useful idea for your database?
Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
"carrot_top" <carr...@discussions.microsoft.com> wrote in message
news:508F9DB9-6D02-467F...@microsoft.com...
Are you trying to create empty "placeholder" records to be filled in later? If
so, DON'T!
It sounds to me like a better solution might be to have a subform with a combo
box to select only valid customer IDs (the combo based on a Query selecting
only the ones you want).
--
John W. Vinson [MVP]
"John W. Vinson" wrote:
> .
>
To handle this it will be easier if user selects a location and then opens a
form where there is a drop down showing all the customers for that location.
User can select a customer, enter the order and then move on to the next
customer at that location.
Use a form based on location to select the correct location.
After the user selects the location, the main form opens with the combo
showing only the customers for that location.
The main form is based on the customer table.
The subform is based on the order table.
For each new order at the same location, user selects the customer from the
drop down in the main form.
Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
"carrot_top" <carr...@discussions.microsoft.com> wrote in message
news:8A3A5082-C003-426B...@microsoft.com...
"Jeanette Cunningham" wrote:
> .
>
Customer table has a primary key of CustomerID which is easier to manage if
you use an auto number primary key. You create a field for the custom
generated number for the customer.
The Order table has a primary key of OrderID, and it also has the CustomerID
as the foreign key.
The location table has a primary key of LocationID.
The customer table uses LocationID to keep track of which customer is at
which location.
To add new customers, put an add customer button next to the combo with
customers.
When user clicks to add customer, give them a dropdown of locations to
choose from.
Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
"carrot_top" <carr...@discussions.microsoft.com> wrote in message
news:C4857E5C-6380-4795...@microsoft.com...
We can supply code to give the next customer the next order number
automatically when entering customer's orders at a location. This will make
it fairly easy for users to enter a customer order.
I am afraid that your table setup is not normalized and this will cause
grief and frustration as you try to develop the database.
I have suggested tables in my answer to your next question.
Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
"carrot_top" <carr...@discussions.microsoft.com> wrote in message
news:C0FDFFAB-9E2C-4DC0...@microsoft.com...
>To add new customers, put an add customer button next to the combo with
>customers.
>When user clicks to add customer, give them a dropdown of locations to
>choose from.
and/or use the NotInList event of the Customer combo box to allow new
customers to be added using a popup form.