Results 1 to 2 of 2
  1. #1
    tmartin is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Mar 2015
    Posts
    37

    Question Querry Help Needed

    The criteria I have for a standalone query is
    Like "*" & [Forms]![SearchForm]![txtCustomerName] & "*"
    and this works fine for the Client field.

    How do

    This will work however I need to add the Like to allow for a better search. Any idea how to embed the Like with the DoCmd.OpenForm commmand in VBA

    DoCmd.OpenForm "TransactionsForm", acNormal, "", "[Client]=[Forms]![SearchForm]![txtCustomerName]", acReadOnly, acNormal

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Are you trying to build a search form? or trying to open a second form and show the info for the record you selected in the first form?

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

Similar Threads

  1. Help needed : Library catalogue in access format is needed
    By dealers in forum Sample Databases
    Replies: 3
    Last Post: 01-16-2014, 02:03 PM
  2. querry or report
    By kamnjoro in forum Access
    Replies: 1
    Last Post: 01-09-2014, 12:36 PM
  3. Update Querry
    By Daryl2106 in forum Access
    Replies: 6
    Last Post: 08-29-2013, 11:09 AM
  4. Update Querry
    By wrenchman123 in forum Queries
    Replies: 0
    Last Post: 02-05-2011, 07:21 AM
  5. Querry formating
    By Zoroxeus in forum Queries
    Replies: 0
    Last Post: 03-07-2006, 11:00 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