Move existing data to another field- use macros?

J

Jolene Updike

Hello-
I'm trying to streamline a really old and poorly structured database, and
I'm trying to avoid some tedium-- I have 2 fields that I want to get rid of
by combining the data seperated by a "-" into a new field. There must be a
way to do this without manually copying and pasting the thousands of
records...
 
S

Stephen English

You could do one of following
1. do it using an Access query if you can access your old database from Access
2. export the data to Excel, combine your fields and import into your new
Access db
3. write some code to read a record from old db, manipulate fields and write
to ACcess db

Regards
Stephen
 
S

Steve Schapel

Jolene,

Make (and run) an Update Query, to update the "new field" to the
equivalent of...
[FirstOldField] & "-" & [SecondOldField]

Then you can delete the old fields :)

However, I would be cautious - you say the old database is "poorly
structured", but, on the face of it the idea of concatenating two pieces
of information into one field is in itself a poor structure. Post back
with more information about the data if you are interested in advice on
this aspect.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top