Results 1 to 3 of 3
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    trying to do this correctly open form custom parameters


    DoCmd.OpenForm "frmSchools", , , "SchoolTypeID = 2" & "StateID = 2" I need the query to have 2 custom parameters on the form that is being opened...

    not aware of the correct language

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,974
    "SchoolTypeID = 2 AND StateID = 2"

    If you want the criteria to be dyanmic, options:

    1. popup input parameters in the form RecordSource (I never do that)

    2. reference controls (comboboxes?) on form for the input
    "SchoolTypeID = " & Me.cbxSchool & " AND StateID = " & Me.cbxState

    3. popup VBA InputBoxes for criteria input
    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
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    the top instructions work perfectly - I tried everything but​ that - thanks

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

Similar Threads

  1. Replies: 2
    Last Post: 08-07-2013, 07:44 AM
  2. Replies: 15
    Last Post: 12-10-2012, 06:37 PM
  3. Open form from parameters
    By funkygoorilla in forum Forms
    Replies: 5
    Last Post: 01-01-2012, 09:17 PM
  4. Custom Form to Collect Query Parameters
    By andersonEE in forum Forms
    Replies: 5
    Last Post: 03-14-2011, 02:17 PM
  5. Replies: 0
    Last Post: 01-27-2011, 09:58 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