Timtropolis
Registered User.
- Local time
- Yesterday, 22:55
- Joined
- Jun 17, 2004
- Messages
- 84
Greetings all,
I am having some difficulties with my code and was wondering is someone could help. I'm basically writing a loop which will scroll thru each column in a record, check to quotes and strip them out. The code is as follows:
notes: y=current column count, z= total column count
The first occurence on line 2 "Right("rst!Field" & y, 1)" works fine , however I cannot get line 5 to work at all. I have tried a couple of different variations with quotes and variables but I keep getting compile error messages.
I believe I'm close but need a little help. If anyone can provide some assistance, it would be greatly appreciated.
TIA,
Tim
I am having some difficulties with my code and was wondering is someone could help. I'm basically writing a loop which will scroll thru each column in a record, check to quotes and strip them out. The code is as follows:
Code:
Do Until y > z
If Right("rst!Field" & y, 1) <> Chr(34) Then
'With rst
rst.Edit
rst!field & y = Left((rst!field4), Len(rst!field4) - 1)
rst.Update
'End With
End If
y = y + 1
Loop
notes: y=current column count, z= total column count
The first occurence on line 2 "Right("rst!Field" & y, 1)" works fine , however I cannot get line 5 to work at all. I have tried a couple of different variations with quotes and variables but I keep getting compile error messages.
I believe I'm close but need a little help. If anyone can provide some assistance, it would be greatly appreciated.
TIA,
Tim