Hi, been a while since I've dabbled with Access and missing something very silly!
I have this code:
The issue I have is with the last line I have shown. If I reference the field directly (str = rst1![SRN1]) then it works fine, so the data types are correct. But when I use the above I get the error "Type declaration character does not match declared data type".
What am I doing wrong please?
Nigel
Didn't someone say work is supposed to be fun? They didn't have computers then I guess....
I have this code:
Code:
If rst1![Request_Type] = "New" Then 'New request, check for ID's with these SRNs or Names
i = rst1![No_Users]
For c = 1 To i
str = rst1!("SRN" & c)
The issue I have is with the last line I have shown. If I reference the field directly (str = rst1![SRN1]) then it works fine, so the data types are correct. But when I use the above I get the error "Type declaration character does not match declared data type".
What am I doing wrong please?
Nigel
Didn't someone say work is supposed to be fun? They didn't have computers then I guess....