Nash
Jul 19 2006, 03:45 PM
I have a table with a field that has data separated by an *. I can't do an find/replace because when I look search for * it highlights and replaces the entire field. How can I solve this quirk.
Thanks
freakazeud
Jul 19 2006, 03:47 PM
Hi,
what are you trying to do? Remove the "*", or just find the values which have one in it, or...?
To replace you can try this in an update query:
Replace([YourField],"*","")
To find it use the Instr() Function.
HTH
Good luck
R. Hicks
Jul 19 2006, 03:50 PM
What as you using ???
Replace([FieldName],"*", "")
The above should remove the asterisk ...
RDH
Nash
Jul 19 2006, 03:51 PM
It didn't recognize Replace as a function.
R. Hicks
Jul 19 2006, 03:54 PM
You must not be using it correctly ....
Post "exactly" what you say it does not recognize .. and where you are using it.
RDH
freakazeud
Jul 19 2006, 03:55 PM
Are you using Acc03 as specified in your version? If yes then replace should work...if it doesn't then maybe you have a reference issue. Open the vba editor (ctrl+g), tools--references...and check if any are marked missing. If yes then correct that. Where did you put the command?
HTH
Good luck
Nash
Jul 19 2006, 03:58 PM
I created an update query, brought the table in, dropped in the field, and put Replace([FieldName],"*", "") in the Update To line.
R. Hicks
Jul 19 2006, 04:07 PM
You need to substitute "FieldName" with the actual name of the field that contains the data to alter ...
RDH
Nash
Jul 19 2006, 04:09 PM
I know, I did that.
R. Hicks
Jul 19 2006, 04:14 PM
Make sure you have installed all updates for the version of Office/Access you are using.
RDH
Nash
Jul 19 2006, 04:16 PM
That's strange. I was attempting to do the update query on our server version of Access and it didn't run, but then I exported the table to my hard drive and used the version of Access there - it worked fine. Hmm.
Thanks
R. Hicks
Jul 19 2006, 04:18 PM
Update Office and Access of the server with all updates and service packs .. and make sure that the latest Jet 4 update has also been installed ...
RDH
Nash
Jul 19 2006, 04:19 PM
Thanks
R. Hicks
Jul 19 2006, 04:23 PM
No problem ..

RDH
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.