I am using ADO. The following SQL query will retrieve 1 record correctly.
Select Distinct hrSsn as hrSn,
' ' as OsnText
From table_abc
Where hrSsn = 119928443
For Fetch Only
But the following code gives error:
"Multiple-step operation generated errors". Debug pinpoint the problem is on the .Fields("OsnText").Value = pp, wonder how to solve it? Many thanks!
With frsOsn
Dim pp As String
pp = Format(CStr(.Fields("TrueOsn").Value), "000-00-0000")
.Fields("OsnText").Value = pp
End With