Hi I have a login form which requires the user to enter username and then password. The username and password is checked through in a table and then allows-does not allow the user access to fill in another form.
In the table there is information regarding the persons name, email, etc. In my second form I want the personal information already displayed so that they wont have to fill it in. Basically, by logging into the form and opening another form it will recognise who the person is and will automatically fill in their details. Thanks
Ken
You have several choices. You can open the second form with OpenArgs that refernce the ID or name of the person on the log-in.
The syntax is ( http://msdn.microsoft.com/en-us/library/office/ff820845.aspx ):
So:
The second form can then use the OpenArg to find or DlookUp ( http://msdn.microsoft.com/en-us/library/bb148913(v=office.12).aspx ) the record in the table, for example, you could set a textbox to:
You can open the second form bound to the users table and use the Where argument:
This would be best, but it does depend on a bound table or query.
Finally, you can hide the log-in form and refer to the controls in a textbox: