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

resolvedResolved · Low Priority · Version 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:

Choosing data types in Access

Not sure which data type to use for your Access fields? Here are some guidelines to help you choose a data type to assign to a field.

- The Text data type can accept up to 255 characters. For information that will be recorded in paragraphs, use Memo.

- Also use Text for numbers that aren't going to be used in calculations, e.g. phone numbers.

- Use the Currency data type for monetary amounts.

- Use Date/Time for dates.

- Most other numbers can use the Number data type, but the Field Size property may have to be altered.

- For fields that have only two alternatives (yes, no) use Yes/No data type. If there is likely to be a third entry option (e.g. maybe or don't know) use Text instead.

View all Access hints and tips


Server loaded in 0.08 secs.