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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reimport data woth out deleting the table

Status
Not open for further replies.

metalman

Programmer
Sep 17, 2001
35
US
is it posible to import data into an access table without deleting the table. i have three tables where the format and properties stay the same but when i update the tables it reforamts the table to default setings. this is what 8i am currently useing

Option Compare Database

Private Sub Command0_Click()
DoCmd.DeleteObject acTable, "jrnitm_importerrors"
DoCmd.DeleteObject acTable, "Items"
DoCmd.DeleteObject acTable, "Header"
DoCmd.DeleteObject acTable, "Entry"

DoCmd.TransferText acImportDelim, , "Items", "L:\cw\rpts\JRNITM.TXT", False
DoCmd.TransferText acImportDelim, , "Header", "L:\cw\rpts\JRNHDR.TXT", False
DoCmd.TransferText acImportDelim, , "Entry", "L:\cw\rpts\JRNENT.TXT", False

End Sub

 
Stick to basics. You only need to delete the contents of the table that you need to import to prior to importing, since Access appends information to tables if they already exists.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top