Results 1 to 4 of 4
  1. #1
    akika is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2018
    Posts
    27

    access16, click on search button to get the details

    Hi,

    ive added a search button with on_click event:

    Apply filter where condition =
    [Name] Like "*" & [Forms]![frm_customer]![Text214] & "*"
    And [address] Like "*" & [Forms]![frm_customer]![Combo224] & "*"
    And [ID] Like "*" & [Forms]![frm_customer]![Text202] & "*"


    And [status] Like "*" & [Forms]![frm_customer]![Combo244] & "*"

    I need to add other fields in the condition and getting length limitation to do the input.

    Pls help how to add this code as macro procedure.
    thxs.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Most likely you need to use VBA instead of macro.
    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
    akika is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2018
    Posts
    27
    can u pls help on how to transpose the code into vba procedure:

    Private Sub Command429_Click()


    End Sub

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Access has tool to convert macro to VBA. For embedded macro http://www.iaccessworld.com/how-to-c...ro-to-vb-code/

    Also, review http://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.

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

Similar Threads

  1. Record more details button
    By dinsey90 in forum Reports
    Replies: 1
    Last Post: 09-24-2017, 09:40 PM
  2. Replies: 1
    Last Post: 11-30-2016, 03:41 AM
  3. Replies: 9
    Last Post: 03-31-2015, 04:13 PM
  4. Replies: 2
    Last Post: 10-31-2014, 03:56 PM
  5. Replies: 0
    Last Post: 10-16-2008, 02:39 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