Results 1 to 4 of 4
  1. #1
    joe55555 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    24

    Can i do such a specific form ?

    Hello everybody, first of all Happy New Year to everyone and wish you all the best for this coming year

    Here's my issue:



    I have a simple table with 4 Fields as following:
    ID (number) Card_Type(text) Status(text) Expiry_Date (date/time)

    I want to create a form where a checkbox has two options: Active or Canceled.
    When the user Chooses one of the two choices, the form should show Card_types and their Expiry_Date of Active or Canceled Status.

    The main issue is that i want the table to be hidden and the end user who's using the form cannot access the table at all, and he/she cannot copy or change the displayed data in the form, so the form is only a Read/Only.

    Maybe my question is silly but it's been a quite long time since i used access
    Thank you

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    The Navigation pane and ribbon and shortcut menus can be disabled with project settings and code. Review https://www.accessforums.net/access/...ers-48543.html
    Be aware that opening db while holding down shift key will override most of these settings.

    Set controls on form as Locked Yes. Set form AllowAdditions and AllowDeletions properties to No.
    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
    joe55555 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    24
    Thanks a lot everyone, i could find a simple code line to disable the ribbon and everything here it is:
    Code:
    Private Sub Form_Load()
        DoCmd.ShowToolbar "Ribbon", acToolbarNo
    End Sub


    now the file is only accessible if the user uses "Shift" and opens the file.

    I just got an idea, but i don't know if it is possible:
    What if there is a code in VBA which detects that the access file is opened with the shift key, so a pop up windows show asking to enter a username and password, in this way it is not at accessible even when the user uses the "SHIFT" key to open the file!!!!

    or am i dreaming or over thinking ???

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Yes, can disable shift key.

    Bing: Access VBA shift bypass

    http://www.databasedev.co.uk/disable_shift_bypass.html
    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. Replies: 1
    Last Post: 11-20-2014, 08:34 AM
  2. Replies: 7
    Last Post: 05-05-2014, 02:59 PM
  3. Replies: 1
    Last Post: 06-15-2012, 05:51 PM
  4. Replies: 15
    Last Post: 04-17-2012, 01:42 PM
  5. Replies: 1
    Last Post: 11-09-2010, 03:02 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