Results 1 to 3 of 3
  1. #1
    ethan.geerdes is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2016
    Posts
    2

    Opening a new form with specific values

    Hello everyone,



    I am working on a project. I have a table, SiteInfo.tbl. It has a list of a whole bunch of offices, phone numbers, contact information and network/equipment information about that office. I want to make two forms. One form that gives the office information and the other form that has information about the office that is chosen off the first form. how can I go about this? Would this be passing through arguments?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    you make a query, qsOffices, this pulls ONLY the office nums.
    in a form that shows all records. put a combo box on the form header, this combo will use the query qsOffices.
    when the user picks an office from the combo, the form will filter only that dept.
    Code:
    sub cboOffice_afterupdate()
    if IsNull(cboOffice) then
        me.filterOn = false
    else
        me.filter = "[office]='" & me.cboOffice & "'"
        me.filterOn = true
    endif
    end sub

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

Similar Threads

  1. Opening Form to Specific Record Issue
    By Ganymede in forum Programming
    Replies: 2
    Last Post: 02-27-2016, 10:33 PM
  2. Replies: 3
    Last Post: 10-03-2015, 05:53 AM
  3. Replies: 5
    Last Post: 01-24-2015, 12:59 AM
  4. Opening Form to a Specific Record
    By PPat in forum Forms
    Replies: 9
    Last Post: 04-24-2013, 08:47 PM
  5. Help with opening form to specific record
    By manic in forum Programming
    Replies: 7
    Last Post: 09-18-2012, 08:44 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