Which employee has the record?

Banaticus

Registered User.
Local time
Today, 08:38
Joined
Jan 23, 2006
Messages
153
In the startup screen, it would check for the employee name (Windows Uer Name) and adds it to a table if it's not there. The table is the basis for a combo box which can be set to list which employee has a given person. How do I use an Insert statement? I'd like to do somehthing like the following
Code:
Me.EmployeeNameBox = StrConv(GetUserName.fOSUserName, vbProperCase)

If DLookUp(Employees, EmployeeTbl, Me.EmployeeNameBox.Value) Then
	'Blah
Else
	INSERT INTO EmployeeTbl (Employees)
	VALUES (Me.EmployeeNameBox.Value)
End If
 

Users who are viewing this thread

Back
Top Bottom