hi,
If you look at the code below, what I'm trying to do is display info from both tables
The jobtable has the companies id for each job, but the strID relates to the actual job id.
I'm getting an error 80004005
type mismatch in expression, can anyoen help
sSQL="SELECT JobTable.*, CompanyTable.* FROM JobTable, CompanyTable"
sSQL=sSQL & " WHERE CompanyTable.ID = JobTable.CompanyID"
sSQL=sSQL & " AND JobTable.ID= " & strID & ""
sSQL=sSQL & " ORDER BY JobTable.Salary;"
Gavin
If you look at the code below, what I'm trying to do is display info from both tables
The jobtable has the companies id for each job, but the strID relates to the actual job id.
I'm getting an error 80004005
type mismatch in expression, can anyoen help
sSQL="SELECT JobTable.*, CompanyTable.* FROM JobTable, CompanyTable"
sSQL=sSQL & " WHERE CompanyTable.ID = JobTable.CompanyID"
sSQL=sSQL & " AND JobTable.ID= " & strID & ""
sSQL=sSQL & " ORDER BY JobTable.Salary;"
Gavin