secondangel
Registered User.
- Local time
- Today, 16:48
- Joined
- Nov 6, 2008
- Messages
- 52
Hiya tried seraching but no avail.
Im scrolling through a recordset and as its from data imported sometimes i get characters in some of the fields that i dont want. As they are in diff places i need a find and replace type function to remove these characters.
ANy help or ideas much appreciated
Code ive got is
all the rest works byt the way, ive just cut it out of the big chunk of code - so all the other varibales are delcared etc etc. its the what goes here bit
Many thanks
Ashley
Im scrolling through a recordset and as its from data imported sometimes i get characters in some of the fields that i dont want. As they are in diff places i need a find and replace type function to remove these characters.
ANy help or ideas much appreciated
Code ive got is
Code:
prodcost = 0
prodsell = 0
Dim art As String
Dim tit As String
Set rst = db.OpenRecordset("tblTempImport")
If rst.BOF And rst.EOF Then
MsgBox "table is empty", vbCritical
Else
rst.MoveFirst
Do Until rst.EOF
rst.Edit
rst.Fields(0) = strImpName
rst.Update
prodcost = 0
prodsell = 0
prodcost = CInt(rst.Fields(5))
prodsell = Round(prodcost * 1.68, 0)
rst.Edit
rst.Fields(6) = CStr(prodsell)
rst.Update
' read the string value from artist and title into a temp variable
' change it by removing the characters
' write it back to the fields
art = rst.Fields(2)
tit = rst.Fields(3)
[B] ' what goes here ?????????[/B]
rst.MoveNext
Loop
End If
MsgBox "all new records updated", vbInformation
all the rest works byt the way, ive just cut it out of the big chunk of code - so all the other varibales are delcared etc etc. its the what goes here bit
Many thanks
Ashley