Results 1 to 7 of 7
  1. #1
    Jlacey91 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    5

    Search Form Help

    Hi,



    I've had trouble filtering a form on opening so as a way around this I set up a "Search Form" where a user enters the relevant "Driver Number" they are looking for and hits the "Run" button which opens the original form but now filtered.

    This seemed to work perfectly fine at first but now the filtered object in my query is not recognised and I'm asked to re-enter Parameter value when run.


    Any ideas why it's not finding the correct value?

    My criteria is:

    Like [Forms]![DepositCheck1].[DriverNo] & "*"


    Thanks for your help.
    Jamie

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    You may get some ideas from this youtube video by Steve Bishop.

  3. #3
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 10 Access 2013
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    LIKE operator and wildcard don't work with number values. Is DriverNo text or number type?

    I NEVER use dynamic parameterized queries.

    I prefer http://www.allenbrowne.com/ser-62.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.

  5. #5
    Jlacey91 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    5
    Quote Originally Posted by June7 View Post
    LIKE operator and wildcard don't work with number values. Is DriverNo text or number type?

    I NEVER use dynamic parameterized queries.

    I prefer http://www.allenbrowne.com/ser-62.html

    Thank you.

    The DriverNo is a combination of text and numbers.

    If I open the form on it's own type a value and hit search it works perfectly fine. When I add the form to my main form and run the search it does not recognise the value and I have to re-enter it?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I suppose it's because the form referencing is no longer valid. Have to reference through the main form. I NEVER use dynamic parameterized query.
    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. #7
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You have two threads running on this same topic. Pick one and stick with it. You are getting basically same information in both. I should either merge them or delete one.
    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.

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

Similar Threads

  1. Replies: 8
    Last Post: 09-02-2015, 03:00 PM
  2. Replies: 2
    Last Post: 04-13-2015, 02:45 PM
  3. Replies: 3
    Last Post: 09-02-2013, 04:33 PM
  4. Replies: 7
    Last Post: 08-08-2012, 03:28 PM
  5. Replies: 1
    Last Post: 04-20-2012, 03:16 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