Results 1 to 7 of 7
  1. #1
    Hotwheels59 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    5

    Auto open form given query parameter - Access 2010

    I have a query that returns a true/false result. If the result is true, I would like Access to automaticallly open a form based on an On Open command in another form. Any help is much appreciated.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    That query is RecordSource of a form?

    What do you mean by 'automatically'? Some event must happen. You want to open form A which is bound to the query? You want code in that form Open event to immediately open another form if field of form A is true?
    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
    Hotwheels59 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    5
    Thanks for the question... Once form A opens, I would like it to call a query, determine whether the parameter is true, and if so, open form B.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    If the query is not included in form RecordSource, could do a DLookup on the query. Does the query result in a single record?

    Or maybe even a DLookup (or DCount, DSum, etc) on the raw dataset.
    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.

  5. #5
    Hotwheels59 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    5
    The query indeed results in a single record.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Are you familiar with domain aggregate functions? Access Help has guidelines.
    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.

  7. #7
    Hotwheels59 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    5
    No, I'm not. But I can take a look. 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. Need Parameter Query to Open Form
    By HLTAYLOR in forum Misc
    Replies: 3
    Last Post: 06-20-2013, 09:41 AM
  3. Replies: 1
    Last Post: 02-28-2013, 01:20 PM
  4. Replies: 3
    Last Post: 11-04-2011, 01:50 PM
  5. Replies: 3
    Last Post: 04-27-2011, 06:34 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