Keeping Data Field Formats While Importing

hinklewj

Board Regular
Joined
Oct 31, 2002
Messages
90
Within Access I import a table once a month to replace an existing table with updated data. Both tables have the same data fields. My current
method is to import the table over the existing one, and then spend 20
minutes re-formatting all of the data fields.

Is there a way to update this data without having to reformat the data fields every time? I tried table linking, but Access won't allow me to update data field formats in a linked table.

Thanks!!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
What is the field you have to reformat? Can you post some sample data? What is the format that Access produces and what is the format that you want?
 
Upvote 0
There are several fields I have to reformat. Such as defining the primary keys, stating that duplicates are OK, field lengths, etc.

It would be ideal if I can somehow keep the existing table with all its formats while bringing in the updated data, which is coming from an existing query.

Hey is there a way to bring in an additional field to my table, coming from a query? This would solve my problem all together.

Thanks,
Bill
 
Upvote 0
Hi,

Why don't you use an append query to update the data in your table? That won't (and can't) change your field definitions. Open the source data query in design view and click Query, Append Query. You'll be asked to choose which table you wish to append the data to. Choose your table and save the query.

Let me know if that helps or if I'm off track.
 
Upvote 0
Instead of adding records, I need the replace certain data in the records. The Acct # is the primary key, but their score changes monthly. In addition, we are adding new accounts monthly...would I use an update query? I'm new to using append and update functions. Thanks!

Acct # Score
1 10.00
2 98.59
3 54.56
4 64.53
5 99.54

to the following

# Score
1 12.00
2 54.55
3 54.55
4 36.44
5 34.44
6 54.01
7 64.55
8 61.21
 
Upvote 0

Forum statistics

Threads
1,221,573
Messages
6,160,593
Members
451,657
Latest member
Ang24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top