Hi Guys,
I've read many posts here which have helped me tremendously but this is my first time using the forums.
I've created a DB program in Access 2007. I built the program to manage my companies inventory as we have dragged on forever trying to do this without every making any headway.
So I have a "Main_Form" which is simply a full screen pop-up form which has many buttons on it which link to open up a new pop-up form. These buttons are forms which display results from a query designed to display only the components for a particular machine which you have selected by pressing that button. So the form opens up and displays only the records associated with Machine 1. Each record has something like 15 fields on the end with a check box in each field. I just set the check box as True if the record is to be associated with the Field Name EX: record A is used in Machine 1 Machine 2 and Machine 3. So i checked the box in the fields for those 3 machines. This way if you open up the form for Machine 3, it'll show this record, as well as if you open up the form for Machine 2 or Machine 1. This helps so that there are no duplicates and I don't have any overlapping inventory values since this Component (record) is used in so many other machines.
Alright so that is my basic structure of my program and how it works. I've created another small form which I've set to load before any of the other forms load first, and it has a combo box with a listing of usernames from a table. Then a text field which you type in a password to "Login" as it were. So what I need to do is setup some VB code which indicates that if the person Logs In correctly, he has privilages to read/write. However if you don't Login but rather you press my "Read Only" button, you can view the Database and ONLY read the values.
I've accomplished this so far by Duplicating every single form including my Main Form and set one set of the forms as a Read-Only form, where all of the components are Locked for editing....... As you can imagine this is a huge pain in the arse if i need to make a change!!!
So I need some code to setup sort of a global variable indicating the status of the user currently logged in, if he has the ability to write or only read.
Help??
Oh I will say that the MAIN form is loaded only after the Login has completed. The mainform is always in the background of all other forms open on top of it. So help!
There are many other functions I want to encorperate in this program/DB but theyll be asked at a later date.
Thanks
I've read many posts here which have helped me tremendously but this is my first time using the forums.
I've created a DB program in Access 2007. I built the program to manage my companies inventory as we have dragged on forever trying to do this without every making any headway.
So I have a "Main_Form" which is simply a full screen pop-up form which has many buttons on it which link to open up a new pop-up form. These buttons are forms which display results from a query designed to display only the components for a particular machine which you have selected by pressing that button. So the form opens up and displays only the records associated with Machine 1. Each record has something like 15 fields on the end with a check box in each field. I just set the check box as True if the record is to be associated with the Field Name EX: record A is used in Machine 1 Machine 2 and Machine 3. So i checked the box in the fields for those 3 machines. This way if you open up the form for Machine 3, it'll show this record, as well as if you open up the form for Machine 2 or Machine 1. This helps so that there are no duplicates and I don't have any overlapping inventory values since this Component (record) is used in so many other machines.
Alright so that is my basic structure of my program and how it works. I've created another small form which I've set to load before any of the other forms load first, and it has a combo box with a listing of usernames from a table. Then a text field which you type in a password to "Login" as it were. So what I need to do is setup some VB code which indicates that if the person Logs In correctly, he has privilages to read/write. However if you don't Login but rather you press my "Read Only" button, you can view the Database and ONLY read the values.
I've accomplished this so far by Duplicating every single form including my Main Form and set one set of the forms as a Read-Only form, where all of the components are Locked for editing....... As you can imagine this is a huge pain in the arse if i need to make a change!!!
So I need some code to setup sort of a global variable indicating the status of the user currently logged in, if he has the ability to write or only read.
Help??
Oh I will say that the MAIN form is loaded only after the Login has completed. The mainform is always in the background of all other forms open on top of it. So help!
There are many other functions I want to encorperate in this program/DB but theyll be asked at a later date.
Thanks