thanks for the input
i been fukkin around with it for a few
this is where im confused
i made a couple of tables
each table represents the transactions for that day
every table has the customers number/address/etc
how could i find if that customer has called before?
i could find it if the specific table is open, but it would only be for that day
how could i find if they called without openin every single table
Okay. I will create an example. I don't have MS Access experience, but I think my SQL queries will work.
So one table is called CUSTOMERS and the other table is called SERVICES.
A new customer calls. His name is Bob Smith. He lives at 1 Main Street and his number is 212-555-1212. In the CUSTOMERS table, you will have one record to insert, and for example's sake, his customer ID is 0000000001. The First_name field will contain "BOB", the Last_name field will contain "SMITH, the phone_number field will contain "212-555-1212" and the address field will contain "1 Main Street", the city field will contain "New York, the state field will contain "NY" and the zip code field will contain "10011". I added a couple extra fields in the CUSTOMERS table.
Bob needs a new sink faucet installed. It is 11-10-2013. So, you enter in the SERVICES table, customer ID of 0000000001, the service_date field will be 11-10-2013 and the service_done field will be "install new sink faucet".
Bob calls again on 11-15-2013 and he wants a new toilet installed. So, you enter in the SERVICES table, customer ID of 0000000001, the service_date field will be 11-15-2013 and the service_done field will be "install new toilet".
Today, Bob's wife calls again on 11-20-2013. You ask for her name, it's Jenny Smith. You ask if she's called before, She answers that her husband has called. You can look up their customer ID by last_name and first_name, by address, and/or by phone number. You do this by querying or searching the CUSTOMERS table. An example SQL query would be: select * from CUSTOMERS where last_name="SMITH" AND first_name="BOB";
There might be more than one Bob Smith because you live in NYC. So you do another search by phone number: select * from CUSTOMERS where phone_number="212-555-1212";
The response from that query would give you the customer ID of 0000000001. With that customer ID, you can query the SERVICES table.
select * from SERVICES where customer_ID="0000000001";
The response would tell you that he got services performed twice and the latest one was done on 11-15-2013.