Results 1 to 6 of 6
  1. #1
    merlin777 is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    117

    adding a filtered list to a form?

    I'm an access newbie so please excuse me if this is a bit of a basic question...



    I'm constructing a database to record appointments. I want my users to input their appointments on one half of a form (I can manage that bit) but on the other half I want them to be able to see a list of the appointments they already have booked that day (with any patient) or what the patients already have booked that day (with themselves and any other therapists). The appointment fields they will need to see are:
    • start time
    • end time
    • patient/therapist (depending on if they are viewing their own or the chosen patients' appointments
    • type of appointment (physiotherapy etc)
    • location

    The date won't need to be seen but will dictate which day's appointments are listed.

    At it's simplest I could get away with a list of the day's appointments for the patient and date the therapist has typed into the form to start the record.

    Ideally I'd like them to be able to choose whether to see a list of the patient's appointments for that day or their own. If there's room I would display both.

    Here's the final, 'moon-on-a-stick' bit... it would be great if I could show the appointments in time slots rather than just as a list. From what I can tell that's quite tricky to pull off but i thought I would ask anyway...

    At the moment I don't even know what keywords to look up - is this 'embedding a report in a form' or 'inserting a filtered list' and so on.

    Anything you could do to steer me in the right direction would be greatly appreciated.

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    1. Filtered Time Slots:
    Between [Forms]![frmSomeForm]![StartDate] And [Forms]![frmSomeForm]![EndDate]
    2. Patient: Either use a combo or ask for criteria in query.
    3. Also use a combo or criteria in query.
    4. Location: Same as above.

    This could all be done on the form with combo boxes.

    HTH

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Consider a split form with unbound controls as suggested by burrina to use for filter criteria input. Review http://www.allenbrowne.com/ser-62code.html

    Showing all time slots for a day even if there is no appointment(s) for that time is tricky and should be done on a report.

    Bing: Access database appointment scheduler
    Review:
    http://office.microsoft.com/en-us/te...001000405.aspx
    http://www.microsoftaccessexpert.com...-Database.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    merlin777 is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    117
    Quote Originally Posted by June7 View Post

    Showing all time slots for a day even if there is no appointment(s) for that time is tricky and should be done on a report.
    is it not OK to have a form longer than the screen and scroll it?

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Certainly can scroll. However, forms are for data entry and showing a slot for every time period is even more difficult than on report. Making a data entry form look like an appointment book is not easy. I've never built one and expect it likely involves unbound forms and lots of VBA. Did you explore the links?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    merlin777 is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    117
    Quote Originally Posted by June7 View Post
    Certainly can scroll. However, forms are for data entry and showing a slot for every time period is even more difficult than on report. Making a data entry form look like an appointment book is not easy. I've never built one and expect it likely involves unbound forms and lots of VBA. Did you explore the links?
    yes i've had a look at them but my inexperience will prevent me from modifying them or understanding their approach at the moment.

    I think the suggestion i've had at the moment is to create a report and put it in a sub form.

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

Similar Threads

  1. Replies: 2
    Last Post: 06-17-2014, 02:18 PM
  2. Replies: 12
    Last Post: 03-27-2014, 06:14 AM
  3. Filtered Report from filtered datasheet form
    By gemadan96 in forum Reports
    Replies: 7
    Last Post: 01-03-2014, 05:12 PM
  4. Adding a list of tasks (at once) in a form
    By mooseisloose in forum Forms
    Replies: 8
    Last Post: 03-22-2011, 09:27 AM
  5. Replies: 2
    Last Post: 12-03-2010, 09:33 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