B
Brad
Thanks for taking the time to read my question.
I am using a do loop to move through my records. As I find matches, I return
text which is equal to a field name. How do I use that text to tell VBA which
field I want to refer to.
Here is what I'm trying:
If InStr(1, rst!PkgCodes, rst2!TestRequired, vbTextCompare)
Then
With rst2
.Edit
!Fields(rst!Analyte) = True 'This is where it fails
as there is no such thing as Fields
.Update
End With
End If
Any ideas on how I do this? I've done it on a form with Controls
Thanks,
Brad
I am using a do loop to move through my records. As I find matches, I return
text which is equal to a field name. How do I use that text to tell VBA which
field I want to refer to.
Here is what I'm trying:
If InStr(1, rst!PkgCodes, rst2!TestRequired, vbTextCompare)
Then
With rst2
.Edit
!Fields(rst!Analyte) = True 'This is where it fails
as there is no such thing as Fields
.Update
End With
End If
Any ideas on how I do this? I've done it on a form with Controls
Thanks,
Brad