I've created a recordset called rsTme with the following code:
"Select * from EmpInfo Left Join EmpTime ON EmpInfo.SSN = EmpTime.SSn Where EmpInfo.SSN = " & somenumber
Both the EmpInfo table and the EmpTime table have a SSN field and I now need to access the EmpTime's table's SSN Field. I've tried this:
With rsTme
if !EmpTime!SSN = "" then
....
This is where I get the error:
"Item cannot be found in the collection corresponding to the requested name or ordinal"
Does anyone know the syntax in VB6 to get reference a field name from a specified table in the recordset.
Noxum
"Select * from EmpInfo Left Join EmpTime ON EmpInfo.SSN = EmpTime.SSn Where EmpInfo.SSN = " & somenumber
Both the EmpInfo table and the EmpTime table have a SSN field and I now need to access the EmpTime's table's SSN Field. I've tried this:
With rsTme
if !EmpTime!SSN = "" then
....
This is where I get the error:
"Item cannot be found in the collection corresponding to the requested name or ordinal"
Does anyone know the syntax in VB6 to get reference a field name from a specified table in the recordset.
Noxum