Results 1 to 3 of 3
  1. #1
    trident is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    141

    Query form multiple search in 1 line

    I have created a Query form which can search by criteria. the following are the options:

    Programme Status: - choice BL, U1, U2, U3
    Activity Number: - Unique around 400 items
    Activity Name:
    Report Date:

    for the criteria, i can put 1 item per line, how can I get 2 or more choices in 1 line, sample:

    Programme Status : BL, U1

    Below is the VB i created:

    Private Sub Command50_Click()
    DoCmd.OpenQuery "QSearchform", acViewNormal
    End Sub




    Private Sub Command51_Click()
    Me.Progress_Status.Value = ""
    Me.Activity_No.Value = ""
    Me.Activity_Name.Value = ""
    Me.Report_Date.Value = ""
    End Sub

    on the Query form, this is the formula written:

    Like [forms]![SearchForm].[Progress_Status] & "*"
    Like [forms]![SearchForm].[report_Date] & "*"

    Hope you can give me a hand.

    Thank you.

    Trident

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Multiple parameters for one field requires VBA. Review http://allenbrowne.com/ser-50.html
    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.

  3. #3
    trident is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    141
    Thank you very much for the reply, I will try and get back to you for the result.

    Again, Thank you.

    Trident

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

Similar Threads

  1. Replies: 5
    Last Post: 09-11-2014, 10:25 AM
  2. Replies: 10
    Last Post: 06-10-2014, 09:03 AM
  3. Replies: 12
    Last Post: 03-22-2012, 02:48 AM
  4. Replies: 3
    Last Post: 08-16-2011, 02:20 PM
  5. Replies: 2
    Last Post: 08-05-2011, 01:24 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