Results 1 to 3 of 3
  1. #1
    RachelBedi is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Jul 2012
    Posts
    67

    Form Help

    I think this will be confusing but I'll to my best to explain.



    I have a switchboard with various buttons to open various forms, when you click the button "Activations" it opens frmActivators - in the on load event of this particular form I have entered code;

    Private Sub Form_Load()
    If ([Bank Modified Date]) <= Date - 14 Then
    DoCmd.Close acForm, "frmActivators"
    DoCmd.OpenForm "frmOlderThanFourteen", acFormDS
    End If
    End Sub

    If the user tries to close the form which opens they get booted from the database - the purpose of this is to force users to take care of any accounts that have passed 14 days and not bypass it.

    Unfortunately in the on close of frmActivators I have code to open the switchboard again which means when the frmOlderThanFourteen opens so does the switchboard - which defeats my purpose of only allowing the user to access the one form frmOlderThanFourteen

    I'm sure there is something simple to keep my switchboard from being open at the same time as this frmOlderThanFourteen form but I can't say I can find something.

    Thank you guys for being so patient :-D

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Switch the order so that frmOlderThanFourteen opens before frmActivators closes. Also when you open the frmOlderThanFourteen open it modally.

  3. #3
    RachelBedi is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Jul 2012
    Posts
    67
    I knew it would be something simple LOL THANK YOU!

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

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