Results 1 to 9 of 9
  1. #1
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376

    Entering unknown territory hope you will assist


    Hello all,

    I was watching a video on securing the Front End of a database and thought I would incorporate it into 1 of mine and ran into some problems. It involves creating a login screen which went good and I understand that (I Think) but where I have an issue is where XML is needed to disable the "Options" in Access. I tried the XML code in the example but it throws an error on line 1 column 63 and on line 7 column 11. The XML is given below.

    <customUI xmlns="http;//microsoft.com/office/2009/07/customui">
    <ribbon startFromScratch="false"></ribbon>
    <backstage>
    button idMso="ApplicationOptionsDialog"
    visible="false"/>
    </backstage>
    </customUI>

    I then took this out and thins seems to work OK again but I cannot get rid of the "Options" under "Privacy Settings"


    The zipped Database is attached. The Bypass Key has been Enabled so you can hold the Shift key down when you open it. The "Developers" Name is Developer and the Password is also Developer to use on the Login Screen.

    New Login-3a.zip

    Thanks
    Dave
    Last edited by Dave14867; 09-06-2020 at 10:48 AM. Reason: Add Login Info

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Everything you need to know about ribbons at https://www.accessribbon.de/en/

    There is a semi-colon instead of colon in line 1. Missing schemas:

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">

    Lines 4 and 5 should be a single line. Missing opening < :

    <button idMso="ApplicationOptionsDialog" visible="false"/>
    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
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376
    June,

    I tried to make the corrections you suggested and got the following errors.

    Click image for larger version. 

Name:	Access Error 1.PNG 
Views:	12 
Size:	7.8 KB 
ID:	42918

    Click image for larger version. 

Name:	Access Error 2.PNG 
Views:	12 
Size:	7.5 KB 
ID:	42919



    <customUI xmlns="http://microsoft.com/office/2009/07/customui">
    <ribbon startFromScratch="false"></ribbon>
    <backstage>
    <button idMso="ApplicationOptionsDialog" visible="false"/>
    </backstage>
    </customUI>

    Thanks for the XML Link, I'll look into it but right now I would just like to get to be able to disable the Options and get this to work.

    Thanks

    Dave

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    You didn't use schemas in the url string.
    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.

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,979
    Hi Dave
    Suggest you read my article on improving security in Access databases which covers how to create a modified ribbon to remove items such as Access options... and much else besides.
    The article also includes an example app you can use to test out each step.
    See http://www.mendipdatasystems.co.uk/i...y-2/4594571073

    P.S. Try <ribbon startFromScratch="true">
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  6. #6
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376
    I took the XML Code from the video and it was working in the example. I don't know XML at all, this is my first attempt at it.

    June, I don't know what you mean by schemas in the url string, the first error is saying it doesn't like the ">" at the end of the line 1, the second is saying it doesn't like the ">" at the end of line 6.

    Colin,
    Thanks for the link, I have opened it and I am sure I will get a lot out of it, but for now I would just like to know what I have to modify in the XML in the database attached above so I can at least get it to work and not lock up due the the errors.

    Thanks

    Dave

  7. #7
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376
    Colin,

    I took the XML from your website and it seemed to correct the issue, Thank You so much.

    Now I have something else to look into to try to improve future works, Thanks for the assistance.

    Dave

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Look at the url string I show in post 2. It has word schemas. Yours does not.
    The string in Colin's example also has this.
    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.

  9. #9
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,979
    Hi Dave
    Glad to see the code from my article solved the immediate problem.
    However, applying one bit of security is, on its own, little more than a temporary stopgap as knowledgeable users will know other ways to get around that.
    If you need to apply security, then I strongly recommend you do it properly...
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Dlookup Assist
    By Thompyt in forum Programming
    Replies: 2
    Last Post: 10-05-2016, 10:52 AM
  2. Some SQL beyond my abilities (please assist)
    By hellfire45 in forum Access
    Replies: 1
    Last Post: 03-18-2015, 07:00 AM
  3. I hope to look at the database
    By azhar2006 in forum Database Design
    Replies: 12
    Last Post: 12-13-2013, 11:52 AM
  4. Senseless, but please assist
    By djclntn in forum Queries
    Replies: 7
    Last Post: 11-21-2011, 07:02 PM
  5. **I need Help with EXCEL. Please Assist**
    By n in forum Import/Export Data
    Replies: 0
    Last Post: 06-23-2006, 10:08 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