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

After Importing Records from Excel Delete Records in Excel

Status
Not open for further replies.

itemus

IS-IT--Management
Jun 27, 2001
4
CA
Here is what I want to accomplish:

I have a button that imports data from an Excel spreadsheet. This spreadsheet is updated by numerous users from different locations. I want to be able to import the data from the spreadsheet into Access and then delete the data (keeping the column headers) in the Excel spreadsheet to start all over again. Can this be done without opening the Excel spreadsheet?

Thanks.

John
 
I guess what can be done is run Excel through Access itself and with Sendkeys run excel-macro which deletes the data and quits excel.
I hope it helps

rk
 

You can't delete rows directly from Access. However, you can update rows in a linked Excel spreadsheet. If you link the spreadheet then just create a query that sets all the columns in the spreadsheet to NULL. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
What I suggested was running a macro creatd in Excel through Sendkeys to delete records. My assumptions was that the spreadsheet is not linked to the database and data is imported into Access at different intervals.
And it works!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top