Results 1 to 3 of 3
  1. #1
    lmcm1977 is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2018
    Posts
    9

    Datasheet view in subform??


    Hi

    I have a form created in my database (database has one to many relationships) . In the top part of my form I have the demographic details for the person which never changes but then I have a subform which has the list of appointments and appointment details that the patient has attended. these are showing in a datasheet view at the moment but I wondered if I can change this to show in a tabbed format? each tab would have a label saying "appointment 1" "appointment 2" and so on?? the datasheet view isn't very userfriendly to view at the moment and im not sure whats the best way to change this.

    thanks in advance!

    best wishes
    lynn

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you can have a 'tab' control to hold the subform, but not a tabbed forms like the master form.
    you shouldn't use tabs for each Appt ,then youd have infinite tabs.

    i'd have a combo box above the subform to hold all the Appt Dates.
    user can enter or pick a date, then the subform would filter on that date,
    no date would show all Appts.
    the query "qsApptBy1Date", would use the combo box as criteria:
    select * from appts where [ApptDate]=forms!myForm!cboBox

    Code:
    sub cboBox_Afterupdate()
    If IsNull(cboBox) Then
      me.subform.sourceObject = "qsAllAppts"
    Else
      me.subform.sourceObject = "qsApptBy1Date"
    End If
    end sub

  3. #3
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,421
    If you might want to see 2 or 3 appointments consider a listbox to multi select appointments from a list. Or if a date range is more conducive, filter the datasheet by date range - two textboxes with start and end dates.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 1
    Last Post: 09-20-2017, 12:19 PM
  2. Subform Datasheet View Sorting
    By Tina007 in forum Forms
    Replies: 3
    Last Post: 04-05-2015, 08:22 AM
  3. Replies: 3
    Last Post: 08-18-2013, 09:14 PM
  4. Replies: 6
    Last Post: 11-21-2012, 05:10 PM
  5. Subform, Totals, in Datasheet view
    By eww in forum Programming
    Replies: 1
    Last Post: 09-27-2010, 10:22 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