customer history

ICTkirsten

Registered User.
Local time
Today, 13:10
Joined
Jan 3, 2015
Messages
137
Hiya,

Im currently trying to create a way of displaying a history of the last 10 records of a customer ONLY.

so to try and make myself clearer; basically im a dentist and to perform operation i need to be able to view a customers teeth history for the last 10visits.

So what i have ATM is a form that allows me to create new teeth entries however i would like it to allow me to click a button that shows the teeth history of that customer (BUT ONLY FOR 10 RECORDS- maybe this would require something that would stop the amount of records exceeding 10?)

I have a table that contains teeth id, customerID ,back teeth, front teeth and date ...

Please could someone advice with me with what to do or provide an idea...


p.s i will not b able to post up my current DB so im sorry if what i have provided is limited
 
Maybe something like...

Code:
SELECT TOP 10 CustomerID, TeethID, DateField
FROM YourTableName
ORDER BY DateField DESC
 
Heya,
where would the code go? :)
 
You would use that to create a query and then assign it as the Recordsource of the Subform.
 
Just a quick one..

What does SELECT top 10 customer ID mean? im not too sure about how i would do it?
 
Are you saying you don't understand Post#4? Because that is the answer to your question. I'm not sure how else I would say it.
 

Users who are viewing this thread

Back
Top Bottom