There may be a more direct method, but this will do what you are looking for.
Add a new field to your table called TEMPNUMBER. Make sure the data type is
the same as the type for the field you want to update.
Create an update query based on the table. Make sure your original number
field and the TEMPNUMBER field are included in the query.
Right click in the 'update to' section of the TEMPNUMBER field and select
'build'. Double-click on the original number field (in the middle column)
and click ok. Run the query by clicking on the red exclamation point in the
top toolbar. This will copy all of the numbers over to the TEMPNUMBER field.
Now clear out the 'update to' section of the TEMPNUMBER field. Right click
in the 'update to' section of the original number field and select 'build'.
Cut and paste the following (including quotation marks):
"0709-" & [TEMPNUMBER]
Run the query again by clicking on the red exclamation point. You have now
added the 0709- to the beginning of all of the numbers. You can now go back
to the table and delete the TEMPNUMBER field.
--
I''m not young enough to know everything.
Golfinray said:
I have numbers in a table that are all four digits, a dash, and then 3
digits, like 3534-252. I would like to add 0709- to the front of each number,
like 0709-3534-252. I have been trying the Replace command but I just can't
get it to work right. Thanks a bunch!!!!