LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default why am I getting a 3010 error?

The following code works until I get to the DoCmd.TransferSpreadsheet line.
I have confirmed that the table, TempTable, is deleted and then generated.
Thanks in advance. I have another module, from which i created this one thru
cut and paste (which DOES NOT have the DoCmd.DeleteObject command, that works
perfectly. What am I doing wrong?

Thanks in advance.

DoCmd.DeleteObject acTable, "TempTable"

strSheetQuery = "SELECT T_FY AS [Fiscal Year], P_FUND AS FUND, P_BORG AS
BORG, P_NAME AS [Project Name], T_CORG AS CORG, T_BOC AS BOC, BOC.Description
AS [BOC Description], T_Quarter AS Quarter, IIF((T_Type='1' OR T_Type =
'2'),T_Amount,0) AS ALLOCATION, IIF(T_Type='C',T_Amount,0) AS PLANNED,
IIF(T_Type='O',T_Amount,0) AS OBLIGATION, T_Description AS Description,
T_DocumentNumber AS [Document Number], T_DocumentDate AS [Document Date],
T_Type AS Type " & _
"INTO TempTable " & _
"FROM BOC INNER JOIN (Projects INNER JOIN [Transaction] ON Projects.P_ID
= Transaction.T_Project) ON BOC.BOC = Transaction.T_BOC " & _
"WHERE Transaction.T_Closed = False AND " & _
"T_Project = " & strProject & _
" ORDER BY T_FY & T_Project & T_BOC & T_Quarter & T_Type & T_DocumentDate"

DoCmd.RunSQL (strSheetQuery)
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel7,
"TempTable", Application.CurrentProject.Path & "\TempSheet", True

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic Error Run Time Error, Type Mismatch Meg Partridge Excel Discussion (Misc queries) 12 September 10th 08 06:10 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
run-time error '1004': Application-defined or object-deifined error [email protected] Excel Programming 5 August 10th 05 09:39 PM
Automation Error, Unknown Error. Error value - 440 Neo[_2_] Excel Programming 0 May 29th 04 05:26 AM


All times are GMT +1. The time now is 11:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"