Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

removing Characters by using a query

Status
Not open for further replies.

wheels27

MIS
Aug 26, 2002
30
US
i want to remove " 's that have been imported i know this is possible how would i do this and would i use a
delete or append query
 
If you put a function in a class module you can run your query against it and update the fields (I think). As an example:

Public Sub StripChar(ByRef strParm As String) As String

If Right$(strParm, 4) = " 's" Then
strParm = Left$(strParm, Len(strParm) - 4)
Else
strParm = StrParm
End If

End Sub

If it didn't like the ByRef, convert it to a function and set your function name = strParm or Left$(strParm...,etc.

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top