Results 1 to 3 of 3
  1. #1
    sparkyboy2406 is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    3

    Filter by combo box & text box?

    Hi Guys,

    Please find attached my sample database.

    If you select forms and then click "frmResults". The click the search button.



    When i select Name from the combo box and enter a name it will return any record with that name.

    My problem is with the telephone number. I need to be able to select "Telephone" from the combo box and enter a telephone number into the text box. When i select search the query should search all 3 telephone fields in the master table. (Daytime, Evening and mobile)

    I think i need a LIKE or statement but cant get it working

    Any ideas guys?

    Thanks for reading and i appreciate any help!

    A greatful novice

  2. #2
    NassauBob's Avatar
    NassauBob is offline Not THAT Green
    Windows Vista Access 2007
    Join Date
    Feb 2010
    Location
    Augusta, GA
    Posts
    61
    Is the doing of this in VB and not with an underlying query purely academic, or do you have a working reason for it? This would be a piece of cake with a couple of queries.

  3. #3
    sparkyboy2406 is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    3
    hi,

    the task must be done in VB. The name will filter. but i need to have the VB code to filter by telephone no. And this field must search the 3 telephone fields in the table.

    can you help??

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

Similar Threads

  1. Filter non-text data
    By bdriscoll in forum Access
    Replies: 2
    Last Post: 09-25-2009, 05:49 PM
  2. filter form based on combo box
    By lloyddobler in forum Forms
    Replies: 8
    Last Post: 09-10-2009, 07:33 AM
  3. Combo Box Filter
    By jgelpi in forum Programming
    Replies: 3
    Last Post: 07-27-2009, 12:54 PM
  4. Filter Form records with Combo Box????
    By jgelpi in forum Forms
    Replies: 0
    Last Post: 05-19-2009, 07:05 AM
  5. Applying a filter to a combo box
    By bugchaser in forum Programming
    Replies: 1
    Last Post: 02-20-2009, 02:37 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