Results 1 to 4 of 4
  1. #1
    NickWren is offline Advanced Beginner
    Windows XP Access 2013
    Join Date
    Dec 2015
    Location
    Connecticut
    Posts
    70

    Search Query

    So I want a search query that take a tables information and is able to search a field or two.

    tblPatientInfo
    -PatientID
    -PatientName
    -PatientPhone
    -PhysicianName
    -PhysicianPhone
    -FacilityName
    -FacilityAbbr
    -PatientInfo...

    qryPatientInfo
    (same as above)


    qrySearchPatient
    -SearchPatientID
    -SearchPatientName
    -SearchPhysicianName
    -SearchFacilityName

    I know in the criteria you put
    Code:
    Like "*" & [Forms]![frmPatientInfo]![PatientID] & "*"
    but now how do i get that to requery, the form is bound to the query qryPatientInfo
    and the search query (pop up form) that you can type in a field from qrySearchPatient and it will find the ones similar



    SearchQuery.zip

  2. #2
    NickWren is offline Advanced Beginner
    Windows XP Access 2013
    Join Date
    Dec 2015
    Location
    Connecticut
    Posts
    70
    Also I have 2 forms;
    1 Form has the basic information for any sample that hasnt had a test in the last 3 months and who hasnt been called in the last 3 months for a follow up
    the second form takes some information but mostly just tells that database that we made a new call, once that information is updated (that we called them),
    we close out of form 2 and go back to form 1, however it doesnt update that we just called that patient; what is the correct vba events to have this "Me.Requery and Me.Refresh" when refocusing on form 1

  3. #3
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Putting this in the Search Command Button on frmSearchInfo will Open the Patient Info Screen to match the PatientID.

    DoCmd.OpenForm "frmPatientInfo", , , "PatientID=" & Me.PatientID

    Me.Requery and Me.Refresh achieve different results. Please review
    https://support.office.com/en-us/art...5-a472e742366c

  4. #4
    NickWren is offline Advanced Beginner
    Windows XP Access 2013
    Join Date
    Dec 2015
    Location
    Connecticut
    Posts
    70
    So this didnt really help me out at all, I cant even open the frmPatientInfo without hitting "OK" 4 times. I am wondering if you can just tell me what I need to do to fix the form I have, because this is the approach I am currently trying to take, however it isnt working properly.

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

Similar Threads

  1. Search Query
    By Mahendra1000 in forum Access
    Replies: 3
    Last Post: 09-19-2013, 05:44 AM
  2. Search Query
    By sgray in forum Queries
    Replies: 7
    Last Post: 02-16-2012, 04:37 AM
  3. ID search Query
    By clarkej in forum Queries
    Replies: 3
    Last Post: 01-25-2011, 08:03 AM
  4. Search with in a Query
    By AccessCodeMonkey in forum Queries
    Replies: 4
    Last Post: 03-09-2010, 03:16 PM
  5. yes/no search query
    By islandboy in forum Queries
    Replies: 7
    Last Post: 06-30-2009, 09:01 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