I am having trouble getting DMax Function to work in a query.
I am looking to pull the most recent ID for one table. The DMax function will be used in 2 queries.
Currently this is what the query looks like without the DMax function:
I need to pull the most recent EmpInfoID. I had a column for the DMax function in the query but it would not run. I had Expr1: DMax ("EmpInfoID").
Please tell me what I am doing wrong!
I am looking to pull the most recent ID for one table. The DMax function will be used in 2 queries.
Currently this is what the query looks like without the DMax function:
Code:
SELECT tblEmp.EmployeeID, tblEmp.EmployeeName, tblEmpInfo.EmpInfoID, tblEmpInfo.JobNumberFK, tblJobs.JobSite, tblEmpInfo.EmpType, tblEmpInfo.CraftCode, tblLicensing.LicenseID, tblLicensing.License, tblLicensing.Category, tblLicensing.Qualifications, tblLicensing.ExpirationDate, tblLicensing.CertificateNum, tblLicensing.State
FROM tblJobs INNER JOIN ((tblEmp INNER JOIN tblEmpInfo ON tblEmp.EmployeeID = tblEmpInfo.EmpIDFK) INNER JOIN tblLicensing ON tblEmp.EmployeeID = tblLicensing.EmpIDFK) ON tblJobs.JobNum = tblEmpInfo.JobNumberFK;
I need to pull the most recent EmpInfoID. I had a column for the DMax function in the query but it would not run. I had Expr1: DMax ("EmpInfoID").
Please tell me what I am doing wrong!