Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204

    Quote Originally Posted by Micron View Post
    Sounds like you've never made a db that was visible to "outsiders" that shouldn't be allowed in.
    That was also the point I was making.
    For example my schools apps are for use by teaching and admin staff only.
    The apps are loaded on all computers on the admin network including one in every classroom which are usually left switched on throughout the day.
    The login form is one of a number of measures which ensures no unauthorised access by students or other unauthorised staff.
    Particularly sensitive data such as child protection requires an additional (and different) password which is regularly changed.
    Code to automatically log users out of the apps after a set period of inactivity is also employed.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  2. #17
    mrcunknown is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2018
    Posts
    12
    Quote Originally Posted by June7 View Post
    Options for passing info to the form to open: 1) OpenArgs argument; 2) filter criteria; 3) TempVars or global variable; 4) set textbox value

    Code posted in my link passes value with OpenArgs. I have since modified to apply filter criteria. The Menu form is bound to Users table.

    DoCmd.OpenForm "Menu", acNormal, , "UserInitials='" & Me.tbxUser & "'", , acWindowNormal

    Then code behind Menu form manages itself to enable/disable buttons and perform other actions:

    Code:
    Private Sub Form_Open(Cancel As Integer)
    Me.cbxUser = Me!UserInitials
    If Me!Permissions = "admin" Then
        If Not IsNull(DLookup("DateEnter", "UserComments", "Isnull(DateReview)")) Then DoCmd.OpenTable "UserComments"
        If Format(Now(), "hhmmss") <= "080000" And Weekday(Date) = 2 And ((Month(Date) >= 6 And Month(Date) <= 9) Or Month(Date) <> Month(DLookup("ConstructionExtract", "Updates"))) Then
            ConstructionExtract
        End If
    End If
    If Me!Permissions = "staff" Then
        Me.cbxUser.Visible = False
        Me.btnAdmin.Visible = False
        Me.btnCost.Visible = False
    End If
    If Me!Permissions <> "admin" Then Call SetAccessXCloseButton(False)
    Me.btnSample.SetFocus
    End Sub
    Im gonna try if i can make something out of this :-)

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 01-20-2019, 04:57 PM
  2. Login System Question in Access
    By Batselot in forum Access
    Replies: 1
    Last Post: 10-05-2018, 08:50 AM
  3. Change password form in login system
    By Luke.F.14 in forum Access
    Replies: 3
    Last Post: 09-08-2017, 07:44 AM
  4. Replies: 1
    Last Post: 02-17-2013, 06:54 AM
  5. Login System
    By anwaar in forum Programming
    Replies: 2
    Last Post: 09-02-2011, 01:31 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