Page 3 of 3 FirstFirst 123
Results 31 to 44 of 44
  1. #31
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by June7 View Post
    What would you like to type in the combobox - patient lastname, firstname? Change the Row Source to:


    SELECT Observations.ObsID, [Patients].[LastName] & ", " & [Patients].[FirstName] & " | " & [Studies].[StudyID] & " | " & [Observations].[Period] AS Expr1, Studies.StudyID, Observations.Period
    FROM (Patients INNER JOIN Studies ON Patients.PatientID = Studies.PatID) INNER JOIN Observations ON Studies.StudyID = Observations.StudyID
    ORDER BY Patients.LastName, Studies.StudyID;

    Now can type patient lastname, firstname and the combobox will auto fill.

    Something I forgot to include. In the combobox GotFocus event add this line: Me.cbxObs.Dropdown

    Now the list will automatically show when box gets focus and can use up/down cursor keys.

    Can also move the combobox and button into the Detail section and set the combobox TabIndex to 0 so it will have focus when the form opens.

    June... the innerjoin did not really help... I don't know.
    I am so that my database is still not working properly. This is the only part that is not functioning right.

  2. #32
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Thank you so much for all your help tho! I really appreciate it!

  3. #33
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    What do you mean by 'not working right'? It was working for me in the sample.
    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. #34
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by June7 View Post
    What do you mean by 'not working right'? It was working for me in the sample.

    I mean the way I would like the forms to be

    My database is fully done now except this part where the EDIT does not link properly.

  5. #35
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    I have a feeling is something to do with my SEARCH FORM.. I have filtering it/ selecting patient based on StudyID but because my subforms have another ID to do.. I will try later with SELECTING PATIENT based on TWO ID.. maybe searchcriteria

  6. #36
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Do you want to provide your db for analysis?
    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.

  7. #37
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by June7 View Post
    Do you want to provide your db for analysis?

    sure.. Can I PM you for that?

    June, you are really nice... you are very active in this forum. I am loving AccessForums.net

  8. #38
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Best thing is to attach to thread. Copy database, remove confidential data, run Compact & Repair, zip if large, attach to post. The Attachment Manager is below the Advanced post editor.
    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.

  9. #39
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by June7 View Post
    Best thing is to attach to thread. Copy database, remove confidential data, run Compact & Repair, zip if large, attach to post. The Attachment Manager is below the Advanced post editor.

    Thanks June.
    I have attached a copy of the database here.
    I have removed all the other forms that is not needed.

    so if you see... The edit does not correspond to what I have searched for.

    Though the patient information matches. The AM, PM, LUNCH does not match

  10. #40
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    This is not replicating the example I provided you. Very much the same issue you started with. The audit form opens with main form filtered to the StudyID. The subform synchronizes with the StudyID. All related Audit records are retrieved. Activate the Navigation bar on the subform and you can view all of them.
    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.

  11. #41
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by June7 View Post
    This is not replicating the example I provided you. Very much the same issue you started with. The audit form opens with main form filtered to the StudyID. The subform synchronizes with the StudyID. All related Audit records are retrieved. Activate the Navigation bar on the subform and you can view all of them.

    because when I used InnerJoin example that you have provided did not give me the results that I want. Therefore, I went back trying to figure out if there is a way to fix the issue I started with

  12. #42
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Here's what I accomplished with your project. Added these lines to Open event of EditfrmAuditAddNewMain.

    Me.AuditToolNew.Form.FilterOn = False
    Me.AuditToolNew.Form.Filter = "AuditID=" & Form_fdlgSearchPatient.sfrSearchStudy.Form!AuditID
    Me.AuditToolNew.Form.FilterOn = True
    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.

  13. #43
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by June7 View Post
    Here's what I accomplished with your project. Added these lines to Open event of EditfrmAuditAddNewMain.

    Me.AuditToolNew.Form.FilterOn = False
    Me.AuditToolNew.Form.Filter = "AuditID=" & Form_fdlgSearchPatient.sfrSearchStudy.Form!AuditID
    Me.AuditToolNew.Form.FilterOn = True

    Thank you so much, June!!!
    It finally solved my problem!

  14. #44
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Glad it works, just wish I had seen it much earlier. Not like I haven't done something similar to this, just didn't connect here right away.
    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.

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Subform Problem!
    By tramp82 in forum Forms
    Replies: 4
    Last Post: 10-13-2011, 08:46 AM
  2. Form / subform problem
    By ksmith in forum Programming
    Replies: 5
    Last Post: 08-30-2011, 07:33 AM
  3. Subform Problem
    By nchesebro in forum Forms
    Replies: 7
    Last Post: 08-03-2011, 05:24 PM
  4. Replies: 2
    Last Post: 06-14-2010, 03:25 PM
  5. problem with subform
    By dimension in forum Forms
    Replies: 1
    Last Post: 05-28-2009, 05:32 PM

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