Results 1 to 4 of 4
  1. #1
    l3111 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Mar 2011
    Location
    Manchester, UK
    Posts
    38

    Show past records for same user

    Hi
    I'm basically teaching myself access whilst developing a database in work, and i'm really stuck!!
    Really appreciate any help in advance, been using forums to acheive most of my DB already!!! <3

    Bit of background first: My database is for people being entered in a care programme for a period of weeks, however these people can be readmitted to the care programme more than once. What I want to achieve is that when a staff member users the search function (created with help from bloggers!!!) and enters a clients ID number, it brings up a table/list of thier previous entries.

    What I then want to be able to do is double click on these entries to open up the case file, so that the information about that admission can be reviewed.

    At present, for NEW admissions, there is a tick box for staff to say whether client is Readmission OR New to Programme, can this be used??

    I would describe my knowledge as newbie to intermediate, but i have very very very VERY limited knowledge of VB coding.



    If any one out there in the cyberspace can help me, i'd be extremely grateful!!!

    Taaaaaa
    l3111 (Manchester, UK)

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I wouldn't expect to have to search. I'd probably have a form/subform, where the subform was the previous entries. When the user enters a client ID on the main form, you can either use Master/Child links or requery the subform. Either way, as soon as you enter a client ID the subform would display previous visits. You can use this technique to pull up another form to view a specific previous visit:

    BaldyWeb wherecondition
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    l3111 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Mar 2011
    Location
    Manchester, UK
    Posts
    38
    Thats great but where does this code go? (I really am dumb when it comes to VB code )

    Do i paste it in to the VB editor or do I record macro using this process?

    Thanks for the quick response!!

    l3111 (Manchester, UK)

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    What's posted in my link is VBA code, so it would go in the VB editor. You can do the same thing with a macro, but I don't use them so not up on the exact syntax.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. show 4 records in each report page
    By kareem_h in forum Reports
    Replies: 5
    Last Post: 11-10-2010, 10:11 PM
  2. Replies: 2
    Last Post: 11-05-2010, 04:47 AM
  3. 12 Zeros past decimal
    By WhatnThe in forum Access
    Replies: 24
    Last Post: 01-03-2010, 09:53 PM
  4. Date Past Function
    By Laney in forum Access
    Replies: 4
    Last Post: 05-21-2008, 07:19 AM
  5. Lookup or list field: how Do I not show all records
    By scott munkirs in forum Forms
    Replies: 4
    Last Post: 04-13-2006, 12:44 PM

Tags for this Thread

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