MichaelSmith
Registered User.
- Local time
- Yesterday, 16:58
- Joined
- Jan 7, 2014
- Messages
- 34
Hi,
I'm a relative beginner to Access, I've only been working with it for a couple of months and I've run into a snag.
I'm developing a database for a university research project - the database was built in Microsoft Access 2013 with the back end being stored on a Windows Azure SQL Server. It was converted to Windows Azure SQL using SSMA for Access.
I'm now trying to create some front ends for distribution to various users - one front end which has modified forms which only show certain fields and one front end which has full access to all forms/fields. Neither of these front ends have access to tables/queries.
I've set it to open a default main menu form on opening - this form also runs the following VBA:
If I run the ACCDB file this works but I do have to hit Enable Content the first time. This is a bit of a problem as the whole point of hiding the Ribbon/Navigation bar is to prevent user access to tables and for the restricted users its to stop them pulling the restricted data directly from the tables.
The problem with the ACCDE file is even more of an issue - with this file I get a security warning and none of the VBA code runs - I don't have an option to Enable Content and they'll be able to unhide the tables to view the data. This is a fairly major issue as the front end is going to be distributed digitally to researchers and I have no control over their computers so can't do stuff like add Trusted Status manually.
Anyone have any thoughts on how I can get around the issues I've described? Happy to provide more information if it's needed.
Thanks,
Mike
I'm a relative beginner to Access, I've only been working with it for a couple of months and I've run into a snag.
I'm developing a database for a university research project - the database was built in Microsoft Access 2013 with the back end being stored on a Windows Azure SQL Server. It was converted to Windows Azure SQL using SSMA for Access.
I'm now trying to create some front ends for distribution to various users - one front end which has modified forms which only show certain fields and one front end which has full access to all forms/fields. Neither of these front ends have access to tables/queries.
I've set it to open a default main menu form on opening - this form also runs the following VBA:
Code:
Private Sub Form_Load()
' --- User Deployment : Hide Ribbon
DoCmd.ShowToolbar "Ribbon", acToolbarNo
' --- User Deployment : Hide Navigation Panel
DoCmd.NavigateTo "acNavigationCategoryObjectType"
DoCmd.RunCommand acCmdWindowHide
On Error Resume Next
strMDE = CurrentDb.Properties("MDE") 'If this is an MDE or ACCDE database, disable bypass key
If Err = 0 And strMDE = "T" Then
CurrentDb.Properties("AllowByPassKey") = 0
End If
End Sub
If I run the ACCDB file this works but I do have to hit Enable Content the first time. This is a bit of a problem as the whole point of hiding the Ribbon/Navigation bar is to prevent user access to tables and for the restricted users its to stop them pulling the restricted data directly from the tables.
The problem with the ACCDE file is even more of an issue - with this file I get a security warning and none of the VBA code runs - I don't have an option to Enable Content and they'll be able to unhide the tables to view the data. This is a fairly major issue as the front end is going to be distributed digitally to researchers and I have no control over their computers so can't do stuff like add Trusted Status manually.
Anyone have any thoughts on how I can get around the issues I've described? Happy to provide more information if it's needed.
Thanks,
Mike