Results 1 to 3 of 3
  1. #1
    JackieEVSC is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    70

    Problem with code using onload to open a form based on value in checkbox

    I have a database that, when I send out a new frontend, the users have to enter their defaults (their name and location etc). They often forget to set these, even though I tell them to set them in the email announcing the new frontend.




    So ... I created a form (frm_SetDefaults) that has a checkbox for so that they aren't prompted to set their defaults every time they open the database. frm_SetDefaults is based on a table called tbl_DefaultsSet with only one field (DontShowAgain).


    When the database opens, I want it to open frm_SetDefaults UNLESS the "don't show again" checkbox is checked. In that case, I want it to open frm_Main instead.


    I have tried so many variations of code that my brain is bleeding! I'm sure this is a simple thing to do for someone who knows vba, but my skill level of vba is rudimentary at best. I would be very grateful if someone could help me with this code.


    Thanks,
    Jackie

  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,518
    As mentioned elsewhere, it would help to see your code to fix it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    Suggest you read this thread on cross posting. http://www.excelguru.ca/content.php?184
    Sorry if that is not you, but the user name and issue are the same.

    http://www.access-programmers.co.uk/...d.php?t=288645

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

Similar Threads

  1. Query Based on Form Checkbox
    By tylerpickering in forum Queries
    Replies: 4
    Last Post: 11-11-2014, 09:32 AM
  2. Continuous Form With Checkbox VB Problem
    By WhiskyLima in forum Access
    Replies: 4
    Last Post: 11-25-2013, 08:25 AM
  3. Problem with my checkbox vba code
    By wrkadri in forum Programming
    Replies: 2
    Last Post: 12-13-2012, 02:12 AM
  4. Replies: 1
    Last Post: 05-03-2012, 02:25 PM
  5. Replies: 2
    Last Post: 02-26-2010, 08:14 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