Results 1 to 2 of 2
  1. #1
    zashaikh is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    182

    Create a button on a form to open a certain record

    I want to create a button on my single form called btnDELTA.



    When btnDELTA is clicked, I want access to search through the field called txtStatus across ALL records for the word "replace". I want it to bring up the first instance were "replace" is listed in the txtStatus field.

    I need this because I need to overwrite several records. I marked those I need to overwrite with txtStatus.Value = "replace". Instead of clicking an "add new record" button, I want to click a button that will take me to the earlist "replace" record.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Code:
    sub btnDELTA_click()
      Me.Filter = "[Status]='Replace'"
      Me.FilterOn = True
    end sub
    you can then turn the filter off , by click it off on the toolbar.

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

Similar Threads

  1. Replies: 11
    Last Post: 05-15-2015, 05:23 PM
  2. Replies: 1
    Last Post: 12-20-2012, 10:17 AM
  3. Replies: 2
    Last Post: 10-08-2012, 12:39 PM
  4. create a button to open a form for data entry
    By dave john in forum Programming
    Replies: 3
    Last Post: 08-21-2012, 08:41 AM
  5. Replies: 5
    Last Post: 10-28-2011, 02:42 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