Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    Search form using value from a different form.

    I'm trying to make a form where I can enter a few letters and it will search my jobs list and produce results which start with the value I entered.
    This is what I currently have:

    Like [Forms]![SchedulerMenuF]![Search_TXT] & "*"



    When I run the query it gives me back all records no matter what I enter into the text box. Any one have an idea why this is?

    Thank you, Andy.

  2. #2
    Mahendra1000 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    101
    Like "*" & [Forms]! [MainFormname]! [Yourcolumnnamehere] & "*" Or Is Null

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Like "*" & [Forms]![SchedulerMenuF]![Search_TXT] & "*" Or Is Null

    This isn't returning anything mate. No jobs are showing no matter what I put.

  4. #4
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Apologies, It works perfectly but I need to save the form data first. So when I ad this to a button it should be fine.

    Thank you!

    Ill mark this as solved after some testing.

  5. #5
    Mahendra1000 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    101
    Glad it worked

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

Similar Threads

  1. Replies: 3
    Last Post: 09-02-2013, 04:33 PM
  2. Replies: 7
    Last Post: 08-08-2012, 03:28 PM
  3. Replies: 5
    Last Post: 07-13-2012, 01:15 AM
  4. Replies: 1
    Last Post: 04-20-2012, 03:16 AM
  5. Replies: 9
    Last Post: 02-15-2011, 03:05 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