I've asked about this before but am still confused as to what to do.
I am creating a customers and orders database for a client.
This client has customers that are companies and customers that are individuals.
Now, my method may be completely incorrect, but here's what I did:
I created the Customers table with the following fields:
Customer ID (auto-number field)
Company (Name of Company if Customer is a Company)
Contact (LN, FN of Company Contact if is Company)
Customer (LN, FN if customer an individual)
So, if the Customer is a company, the company name and contact full name is entered in their respective fields.
If the Customer is an individual then the customer full name is entered in the respective field and Company and Contact would be left blank.
Next, I created an Orders table with the following fields: (AND here is where my problem lies.....)
OrderID (auto-nuimber field)
CustomerID (looked up from Customers table)
Company (combo box query)
Customer (combo box query)
So, when I create an Order form from the Order table, I am going to get a drop down list for the Customer ID, a drop down list for the Company, and a drop down list for the Customer.
This, of course, creates quite a problem. The entry person will not know the Customer's ID number, so they will not be able to make an entry in that field.
The entry person can, however, enter the Company or the Customer based on their selection in the drop down lists.
But...with the Customer ID field in Orders linked to the Customer ID in Customers, if there is not a Customer ID entered when the new order is entered, then it will not save that order in the Orders table.
I thought that maybe if there way a way to choose a Company or a Customer from a drop down, then have the Customer ID automatically fill in to the Customer ID field (locked for entry) based on the Company or Customer selected, then it would retain the order in the Orders table.
Maybe I'm going about designing the tables needed the wrong way.
In any case, I could really use some help on this. Do I need separate tables for Companies and Customers? I still need them merged together for queries I will have to do on sales and orders, so that wouldn't make a lot of sense to me.
I'm attaching a pic of the Order form. As you can see, I entered a Company, but now I need it to somehow autofill that Company's ID# into the ID field, so that it will be retained in the Order table.
I seriously believe I'm going about this all wrong but don't know any other way.
Any help is appreciated!!!! (I'm screaming HELP!! you just can't hear me! LOL):banghead::banghead::banghead:
Thanks thanks thanks to anybody who can point me in the right direction!!!
And, as a side note, I do NOT know VB, so everything I do has to be done within Access itself. I am using Access 2010.
Thanks!
I am creating a customers and orders database for a client.
This client has customers that are companies and customers that are individuals.
Now, my method may be completely incorrect, but here's what I did:
I created the Customers table with the following fields:
Customer ID (auto-number field)
Company (Name of Company if Customer is a Company)
Contact (LN, FN of Company Contact if is Company)
Customer (LN, FN if customer an individual)
So, if the Customer is a company, the company name and contact full name is entered in their respective fields.
If the Customer is an individual then the customer full name is entered in the respective field and Company and Contact would be left blank.
Next, I created an Orders table with the following fields: (AND here is where my problem lies.....)
OrderID (auto-nuimber field)
CustomerID (looked up from Customers table)
Company (combo box query)
Customer (combo box query)
So, when I create an Order form from the Order table, I am going to get a drop down list for the Customer ID, a drop down list for the Company, and a drop down list for the Customer.
This, of course, creates quite a problem. The entry person will not know the Customer's ID number, so they will not be able to make an entry in that field.
The entry person can, however, enter the Company or the Customer based on their selection in the drop down lists.
But...with the Customer ID field in Orders linked to the Customer ID in Customers, if there is not a Customer ID entered when the new order is entered, then it will not save that order in the Orders table.
I thought that maybe if there way a way to choose a Company or a Customer from a drop down, then have the Customer ID automatically fill in to the Customer ID field (locked for entry) based on the Company or Customer selected, then it would retain the order in the Orders table.
Maybe I'm going about designing the tables needed the wrong way.
In any case, I could really use some help on this. Do I need separate tables for Companies and Customers? I still need them merged together for queries I will have to do on sales and orders, so that wouldn't make a lot of sense to me.
I'm attaching a pic of the Order form. As you can see, I entered a Company, but now I need it to somehow autofill that Company's ID# into the ID field, so that it will be retained in the Order table.
I seriously believe I'm going about this all wrong but don't know any other way.

Any help is appreciated!!!! (I'm screaming HELP!! you just can't hear me! LOL):banghead::banghead::banghead:
Thanks thanks thanks to anybody who can point me in the right direction!!!
And, as a side note, I do NOT know VB, so everything I do has to be done within Access itself. I am using Access 2010.
Thanks!