Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

microsoft+access+training - password protection sub forms

Forum home » Delegate support and help forum » Microsoft Access Training and help » microsoft+access+training - Password protection for Sub Forms

microsoft+access+training - Password protection for Sub Forms

ResolvedVersion Standard

Brian has attended:
Access Advanced course
Access VBA course

Password protection for Sub Forms

Hi

Is there a way I can generate some kind of password protection to a specific sub-form within a form?

I feel I ought to be able to create some code within the properties of the sub-form which when it is diplayed (it is within a tab on the main form) it asks for some input to an input box to which I can set a value which must be met, otherwise access is prevented.

I'd appreciate some advice on this please

Thanks
Brian Clark
Jobcentre Plus

RE: Password protection for Sub Forms

Hi Brian

The answer to your question is it can be done using Visual Basic, however I am not sure whether it can be done using VBA, basically you will have to create a permissions table, then the form you are talking about loads it will check who is logged in and what permissions they have, then will only display the data that they have permission for. My initial reaction is that this is too much for VBA to handle and would need to be done using visual basic.

I will check this out and if I find it can be done using VBA I will get back to you. I hope this answers your Microsoft Access VBA question.
David

Access tip:

Switchboard Startup

An option when you open your Access database that contains all of you tables, forms and queries is only the switchboard is displayed.

To achieve this, select Tools click on Startup. On the right hand side of the Startup screen you are able to select which form you want to open when you open you Access Database. Once you have selected this, there is a check box just below that says "Display Database Window", you need to uncheck this option. Then click ok.

Then when you close you Access database and re open it, the database should open with just the switchboard being shown


View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.12 secs.