Results 1 to 2 of 2
  1. #1
    ericur is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2020
    Posts
    1

    Navigation Forms


    I have a database with a navigation form. The form provides the users the ability to search last name or by location. Users have little or no knowledge of Access. I wish to provide instructions on how to proceed the front page. How can I enter the text for the instructions?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    The user need not know access if you make forms & queries for them.

    make a form that shows all records ,continuous records.
    In the header, put unbound controls for the user to enter search criteria.
    When user clicks the Find button, Test all controls for a possible filter then build the where clause:


    Code:
    sub btnFind_click()
    Code:
    sWhere = "1=1"
    if not isnull(cboState) then   sWhere = sWhere & " and [state]='" & cboState & "'"
    if not IsNull(txtName) then    sWhere = sWhere & " and [Name]='" & txtName & "'"
    if not IsNull(cboGender) then    sWhere = sWhere & " and [Gender]='" & cboGender & "'"
    
     'then filer
    if sWhere = "1=1" then
      me.filterOn = false
    else
      me.filter = sWhere
      me.filterOn = true
    endif
    end sub
    


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

Similar Threads

  1. Navigation forms DoCmdBrowse
    By silbi in forum Programming
    Replies: 1
    Last Post: 04-12-2016, 12:39 AM
  2. Replies: 3
    Last Post: 03-23-2016, 12:45 PM
  3. Navigation Buttons for Forms within Forms
    By Bkper087 in forum Access
    Replies: 1
    Last Post: 01-26-2015, 07:41 PM
  4. Forms Navigation Bar on every form
    By dhogan444 in forum Forms
    Replies: 2
    Last Post: 12-03-2012, 06:19 PM
  5. Replies: 1
    Last Post: 01-04-2011, 05:04 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