Results 1 to 5 of 5
  1. #1
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124

    Open Form view based on Sign in

    Hello


    Forum,

    I am trying to get my button, frmDesc, in my frmMaster to open based on login info.
    I would like those who are able to login to be able to edit the info in frmDesc.
    Those who click on the other button in frmLogin to only view the data in readonly mode.

    Is this possible?

    Yours Sincerely,
    Haziq
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,970
    Why would you give user option to open read only or not read only? This should be your decision based user profile. Have a field in user table that classifies user. I use categories like Developer, Administrator, General.

    Review https://www.accessforums.net/showthread.php?t=23585
    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
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124
    Those who are in the tblEmployees are ICs that have full power of the Db.

    The rest are men who can only stock in or withdraw via frmLog

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    You need to carry a setting on a hidden form which states that the user clicked on read-only. Then open the form with DoCmd.OpenForm "frmDesc",,,,acFormReadOnly

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,970
    So you have user who would not be in the tblEmployees and therefore would not have a login and password? So instead of entering a login ID and password they would just click button?

    Don't really need two buttons for that. Just one button and code checks if login and password are blank, just open form read only.
    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.

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

Similar Threads

  1. How to open a form in full page view
    By cwitt11 in forum Forms
    Replies: 3
    Last Post: 03-06-2017, 10:09 AM
  2. Replies: 2
    Last Post: 04-30-2014, 01:12 AM
  3. open form in a NOT maximzed view
    By markjkubicki in forum Forms
    Replies: 3
    Last Post: 09-30-2013, 07:48 AM
  4. Replies: 35
    Last Post: 09-19-2011, 10:13 AM
  5. Form will not open View or Design
    By aldeb47 in forum Forms
    Replies: 2
    Last Post: 06-15-2011, 07:03 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