login page (2 Viewers)

Johanvdw

New member
Local time
Today, 14:50
Joined
Jun 23, 2025
Messages
7
Guys, thanks to a member (charles), who helped me developed a nice delivery note system, I would love some help to add a login system to it. When an employee are logged in, his credentials(username, tel no and signature) must automatically added onto the reports(Delivery note & gatepass). Can somebody help me with this?
FrmDelivery.jpg
tblEmployees.jpg
RptDelNote.jpg
 
Here's a sample Switchboard with simple security.


If all you want is the login, you don't need to worry about the other stuff.
 
When an employee are logged in, his credentials(username, tel no and signature) must automatically added onto the reports(Delivery note & gatepass).

Rather than closing the login form once a user has successfully logged in, hide it by setting its Visible property to False in the form's module. You'll then be able to reference controls in the login form from other objects. In the attached little demo file the user logs in and enters a hashed password. If they then open either of the bound forms their user name and permissions to the form are shown in unbound controls in the form header.
 

Attachments

Guys, thanks to a member (charles), who helped me developed a nice delivery note system, I would love some help to add a login system to it. When an employee are logged in, his credentials(username, tel no and signature) must automatically added onto the reports(Delivery note & gatepass). Can somebody help me with this?View attachment 121852View attachment 121853View attachment 121854

Do your employees each work under a unique network login? If so, just grab that information and put it all in a table with various other attributes as needed. Then use (any one of multiple methods) to get their logged-in network username at runtime and look up their permissions from the table. such as Environ(username)
 
Rather than closing the login form once a user has successfully logged in, hide it by setting its Visible property to False in the form's module. You'll then be able to reference controls in the login form from other objects. In the attached little demo file the user logs in and enters a hashed password. If they then open either of the bound forms their user name and permissions to the form are shown in unbound controls in the form header.
I just used to store static information like that in TempVars() for further use in the app.
 
Ken's reply makes sense as it is functionally the same as creating a login class (for those with long memories you'll remember using hidden forms as classes in Access 95 before they were formally introduced into Access). I always do this in a class I name 'ThisApp' which contains everything I need to have 'on-tap': often only one or two items but usually a range of them.
 

Users who are viewing this thread

Back
Top Bottom