Hi there,
I have a table [Employees] which has the following Fields
- TxtEmpID
- StrEmpName
- StrEmpPassword
Which I use for my login table with the following script:
If Me.txtPassword.Value = DLookup("strEmpPassword", "tblEmployees", "[TxtEmpID]=" & Me.cboEmployee.Value) Then
TxtMyEmpID = Me.cboEmployee.Value
On my form the drop down to select the employee is “SELECT tblEmployees.[TxtEmpID], [tblEmployees].[strEmpName] FROM tblEmployees; “ (Seemingly all this is based on the TxtEmpID)
When I create a Temprorary Variable [SetTempVar – screen.activecontrol with the name “SetUserID”] and then want to place the variable in a form or whatever else, I can only see the TxtEmpID. I would like to set the TempVar as the field StrEmpName.
How is this possible??
Please reply ASAP
Many thanks
I have a table [Employees] which has the following Fields
- TxtEmpID
- StrEmpName
- StrEmpPassword
Which I use for my login table with the following script:
If Me.txtPassword.Value = DLookup("strEmpPassword", "tblEmployees", "[TxtEmpID]=" & Me.cboEmployee.Value) Then
TxtMyEmpID = Me.cboEmployee.Value
On my form the drop down to select the employee is “SELECT tblEmployees.[TxtEmpID], [tblEmployees].[strEmpName] FROM tblEmployees; “ (Seemingly all this is based on the TxtEmpID)
When I create a Temprorary Variable [SetTempVar – screen.activecontrol with the name “SetUserID”] and then want to place the variable in a form or whatever else, I can only see the TxtEmpID. I would like to set the TempVar as the field StrEmpName.
How is this possible??
Please reply ASAP
Many thanks