I
idtjes3
Hello,
Im trying to create a time card form using the ms access template business>
time card. Ive seemingliy copied all the data from the template and applied
it to my format however, when I click on my employee time card ( form or
table) and try to select my employee's name it only lists the employee's
number in the combo box. I built a query ( like the template did) to combine
the employee's first and last names then i copied the code in the sql editor
from the templates query to the one i created to suit my setup. The code is
as follows:
SELECT
IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[EmployeeID],[FirstName]),IIf(IsNull([FirstName]),[LastName],[LastName]
& ", " & [FirstName])) AS [File As],
IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[EmployeeID],[FirstName]),IIf(IsNull([FirstName]),[LastName],[FirstName]
& " " & [LastName])) AS EmployeeName, [Employee Data].*
FROM [Employee Data]
ORDER BY
IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[EmployeeID],[FirstName]),IIf(IsNull([FirstName]),[LastName],[LastName]
& ", " & [FirstName])),
IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[EmployeeID],[FirstName]),IIf(IsNull([FirstName]),[LastName],[FirstName] & " " & [LastName]));
That all appeared to be correct as my query now looked like the template.
Then, i went to my Employee time Cards and under EmployeeName i have data
type number ( like the template) and in the sql editor i entered:
SELECT [Employee Filed data].EmployeeID, [Employee Filed data].EmployeeName
FROM [Employee Filed data];
Once that was setup I created a relation ship from The Employee Data
Table>EmployeeID to Employee Time Cards.EmployeeName ( as did the template i
followed). It linked it correctly but as i stated above, its listing the
employee numbers rather than full names. What did i miss? If you need more
info let me know, ill try and help the best I can.
Im trying to create a time card form using the ms access template business>
time card. Ive seemingliy copied all the data from the template and applied
it to my format however, when I click on my employee time card ( form or
table) and try to select my employee's name it only lists the employee's
number in the combo box. I built a query ( like the template did) to combine
the employee's first and last names then i copied the code in the sql editor
from the templates query to the one i created to suit my setup. The code is
as follows:
SELECT
IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[EmployeeID],[FirstName]),IIf(IsNull([FirstName]),[LastName],[LastName]
& ", " & [FirstName])) AS [File As],
IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[EmployeeID],[FirstName]),IIf(IsNull([FirstName]),[LastName],[FirstName]
& " " & [LastName])) AS EmployeeName, [Employee Data].*
FROM [Employee Data]
ORDER BY
IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[EmployeeID],[FirstName]),IIf(IsNull([FirstName]),[LastName],[LastName]
& ", " & [FirstName])),
IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[EmployeeID],[FirstName]),IIf(IsNull([FirstName]),[LastName],[FirstName] & " " & [LastName]));
That all appeared to be correct as my query now looked like the template.
Then, i went to my Employee time Cards and under EmployeeName i have data
type number ( like the template) and in the sql editor i entered:
SELECT [Employee Filed data].EmployeeID, [Employee Filed data].EmployeeName
FROM [Employee Filed data];
Once that was setup I created a relation ship from The Employee Data
Table>EmployeeID to Employee Time Cards.EmployeeName ( as did the template i
followed). It linked it correctly but as i stated above, its listing the
employee numbers rather than full names. What did i miss? If you need more
info let me know, ill try and help the best I can.