dhartford
10-13-2008, 09:15 AM
When I try to create a recordset rstA from another recordset rstB and received compile error:
....
dim rstA as recordset
strSQL = "Select [" & fldName & _
' "] From [" & rstB & _ 'error here, type mismatch
' "] Where [Client] = " & rstB(0) & _
' " Order by [" & fldName "] "
rstA.Open strSQL, CurrentProject.Connection
....
Does the rstB have to be a table instead of recordset?
Thanks a lot.
....
dim rstA as recordset
strSQL = "Select [" & fldName & _
' "] From [" & rstB & _ 'error here, type mismatch
' "] Where [Client] = " & rstB(0) & _
' " Order by [" & fldName "] "
rstA.Open strSQL, CurrentProject.Connection
....
Does the rstB have to be a table instead of recordset?
Thanks a lot.