G
Gary
I am using Access 2000-2003 on a XP OS and I have a reliable issue in the
transferspreadsheet issue. Once in a while it transfer correctly, and in
most cases it doesn't. I am trying to transfer about 15 worksheets with
about 400 to 700 rows per worksheet.
This is the VBA code that I am using:
For Each xlSheet In xlBook.Worksheets
ws = xlSheet.Name & "$"
DoCmd.SetWarnings False
DoCmd.OpenQuery "DeleteFormation Table Buffer"
DoCmd.TransferSpreadsheet A_IMPORT, 8, "Formation Table_
Buffer", "C:\x\yy.xls", False, ws
DoCmd.OpenQuery "AppendFormation Table"
DoCmd.SetWarnings True
Next xlSheet
The "AppendFormation Table" query does work, and sometimes I see funny
things in my table like missing rows or duplicate row, and other funny things.
It works sometime. I added delays between them, but that doesn't work
either.
Does anyone have suggestions for me??
Thank you,
Gary
transferspreadsheet issue. Once in a while it transfer correctly, and in
most cases it doesn't. I am trying to transfer about 15 worksheets with
about 400 to 700 rows per worksheet.
This is the VBA code that I am using:
For Each xlSheet In xlBook.Worksheets
ws = xlSheet.Name & "$"
DoCmd.SetWarnings False
DoCmd.OpenQuery "DeleteFormation Table Buffer"
DoCmd.TransferSpreadsheet A_IMPORT, 8, "Formation Table_
Buffer", "C:\x\yy.xls", False, ws
DoCmd.OpenQuery "AppendFormation Table"
DoCmd.SetWarnings True
Next xlSheet
The "AppendFormation Table" query does work, and sometimes I see funny
things in my table like missing rows or duplicate row, and other funny things.
It works sometime. I added delays between them, but that doesn't work
either.
Does anyone have suggestions for me??
Thank you,
Gary