Password to access user exact info

Dave Titan

Registered User.
Local time
Today, 23:52
Joined
Jan 1, 2002
Messages
69
I've been fumbling over this one a while now

Could some one explain/or link me to show how I can have a form pop up once access is started with a blank name field and then password field where anynumber of users can then enter in detals and then a new form based on a query with record specific data is only accessible to them.(crikey I hope this won't be complicated!)
Thanks
 
I'm assuming you have a table with the users' names and passwords. How do you filter relevant data from the other table, are records linked to the users table and you only want to open records that are relevant to that user? If that is the case, I would have a pop-up form with a combo box of all the users names and they select their name, they then enter their password and if it matches the second form opens and in the query for the main form I would have the users field from the base table with the criteria as Forms![popupname]![userfieldname] so that the query only pulls out records relevant to the person that was in the combo box.

Hope that makes some sense.

Dawn
 
Thanks Dawn, I'm a little confused though. I'm afraid that was a bit beyond me at this stage.
 
Tell me a bit more and I'll see if I can help.

Do you want to filter records by user - ie the records that the user created are the records they get to see - or by some other method?

Is there something within each record that defines which user gets to see the record, if so, what?

Do you have a table which lists all the users names with a unique ID which would be linked to the table with the records in it?

That would help me understand what you are trying to do.

Dawn

[This message has been edited by D B Lawson (edited 01-28-2002).]
 
Thanks for comming back to me Dawn.

Basically I have a list of 2000 companies that I've done research on. My project has been succesful and now there will me more people doing research on those companies.

I'd like to have a user open the DB, type a password, and give them access to a preselected amount of companies eg user 1 will have access to only research companies 1-500 etc

I hope this makes a little more sense now. I can asscociate a users name to a company if that helps.
 
Hi Dave

The range of records for a user to view, 1 - 500 will that be predefined and static or would user 1 look at 1 - 500 on Monday and user 2 would look at 1 - 500 on Tuesday?
 
Hi Dave

If it were me, this is what I would do.

1 Create a users table, four fields
User ID, autonumber
User first name
user second name
user password (password input mask)

2 Add a user field to my company records table (number field)

3 Create a one to many relationship between users (1) and company records (many)

4 Run an update query on my company records table to allocate user IDs to records: select record numbers 1 - 500 update User ID field to user number 1 and so on. You'll need to do them one at a time (batches of users - not company records - phew!).

5 Create an unbound form (dialog box). Using the combo box wizard create a combo box that lists all the user names (it will have to fields: user ID (which is hidden) and user name (you could join the first and surnames into one field in the combo box query) which the user uses to select their own name)

6 create an unbound text field and set the input mask to Password.

7 Create a command button for OK. Attached to the command button, have a DLookup that verifies that the password matches that user (we can work on that later)

8 If the password matches the user's ID in the user base table, open the main form showing records that match the user ID. If it doesn't get them to try again (again we can work on that).

There should be stuff above which you can handle yourself and then when it gets to the coding bit we can work on that further if you need a hand.

Hope that all makes sense. If you are really stuck I am more than happy to have a look at your database if you can zip it and email it to me.

I definitely think this is the way to go. You need to establish a relationship between users and records for this to work.

Now I can go to bed!

Dawn

[This message has been edited by D B Lawson (edited 01-28-2002).]

[This message has been edited by D B Lawson (edited 01-28-2002).]
 
Hi Dawn

Thanks so much for the time and effort you went to. I'm now printing off your solution and will endeavour to make it work over the coming days.

I really do appreciate you help and hope that you got a good nights sleep!!!!

dave
 

Users who are viewing this thread

Back
Top Bottom