G
Guest
All,
I am trying to export one of my query result to an excel spreadsheet using
the "docmd.transferspreadsheet" option. Everything is working fine except for
this issue. Whenever I export the data, it just overrides any previous data
and place the new one which is fine with me. But if the initial number of
records in the spreadsheet is, say, 10 and when I export a new table that has
only 5 records, docmd option overrides the first 5 records and leaves the
remaining 5 as it is, which I don't want. I want excel to have only the 5 new
records. So this is my question...Is there a way to tell excel to clear all
the previous records before access does the export? If there is any other
easy alternative, please let me know as well. Thanks in advance for your help!
I am trying to export one of my query result to an excel spreadsheet using
the "docmd.transferspreadsheet" option. Everything is working fine except for
this issue. Whenever I export the data, it just overrides any previous data
and place the new one which is fine with me. But if the initial number of
records in the spreadsheet is, say, 10 and when I export a new table that has
only 5 records, docmd option overrides the first 5 records and leaves the
remaining 5 as it is, which I don't want. I want excel to have only the 5 new
records. So this is my question...Is there a way to tell excel to clear all
the previous records before access does the export? If there is any other
easy alternative, please let me know as well. Thanks in advance for your help!