More information. This is the query I use to get the data into a blank
database. After it's there I want to set-up the primary key. I'm using Access
97.
strNewDatabase = rs("Lname") & "_" & rs("Fname") & "_" &
rs("EmployeeReportToID")
' Insert the employees for this Manager
strSQL = "SELECT DISTINCTROW tblEmployees.EmpID, tblEmployees.Fname, " _
& "tblEmployees.Lname, tblEmployees.BirthYear, tblEmployees.Gender, " _
& "tblEmployees.Minority, tblEmployees.OrigHireDate,
tblEmployees.Relocate, " _
& "tblEmployees.EmployeeReportToID, tblEmployees.ProjYrRetire, " _
& "tblEmployees.Status, tblEmployees.DegreeID,
tblEmployees.YearCompleted, " _
& "tblEmployees.MajorField, tblEmployees.College,
tblEmployees.OtherTraining INTO tblEmployees IN " _
& Chr(34) & strFull & Chr(34) & " FROM tblEmployees " _
& "WHERE (((tblEmployees.EmployeeReportToID)=" & GetManagerID() & "));"
db.Execute strSQL, dbFailOnError