Results 1 to 4 of 4
  1. #1
    ictcrystal is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    21

    Teeth history

    Hiya,



    Im currently trying to create a way of displaying a history of the last 10 records of a customers teeth 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

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Base the Form you see on a Query. This can be done with a SQL Statement like this, as the RecordSource for the Form:
    Code:
    SELECT TOP 10 ClientTable.ClientName, ClientTable.DateTimeCreated
    FROM ClientTable
    ORDER BY ClientTable.DateTimeCreated DESC;

    Replacing the Table/Field names with your actual names, and adding, in the Select part, whatever other Fields you need to see in the Form.

    This will select the Top 10 Records which, since the Query is Sorted Descending by the DateTimeCreated field, means the Query will only return the last 10 Records created.

    Linq ;0)>

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    See this for similar http://www.access-programmers.co.uk/...d.php?t=275497

    I realize this is only your second post here. However, the posts seem eerily similar.
    When you post the same question on multiple forums, it is called cross posting. When you cross post,
    it is considered proper etiquette to inform readers that you have done so.

    The rationale for this is here.

  4. #4
    ictcrystal is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    21
    sorry for that i will not do it again

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Keep History
    By imtiaz703 in forum Access
    Replies: 1
    Last Post: 05-18-2012, 04:49 PM
  2. History Table
    By Opid in forum Access
    Replies: 2
    Last Post: 05-07-2012, 10:50 AM
  3. Keep History of Customers
    By imtiaz703 in forum Access
    Replies: 4
    Last Post: 02-23-2012, 02:57 PM
  4. History
    By jgalloway in forum Database Design
    Replies: 4
    Last Post: 10-04-2011, 02:27 AM
  5. Client History
    By janjan_376 in forum Access
    Replies: 1
    Last Post: 06-23-2009, 02:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums