Q_3_Mothly_LC is a sql passed through query
How to export 20000 records from a sql_pass through query to an excel file ?
Collapse
X
-
-
1.the query Q_3_Monthly_LC is working in back_end.it fetches exact records.the problem is while exporting the data into excel is not working
2.Actually the requirement is to generate the excel report
3.I didnt check the value for acSpreadsheetTy peExcel9. i will check and tell u
4.I usedCode:DoCmd.OutputTo acOutputQuery, "Q_3_Monthly_LC", acFormatXLS, txt, False
it is working for less than 17000 records.So i tried to use the below code,
Code:DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Q_3_Monthly_LC", txt, False
5.i am performing a button on click event.
6. Q_3_Mothly_LC is a sql passed through queryLast edited by zmbd; Sep 22 '12, 07:20 PM. Reason: You must use the <CODE/> format button around any posted code. This has been asked several times!Comment
-
Harinath88:
I have pm'd you with some information about posting requirements.
As for your latest post:
1.the query Q_3_Monthly_LC is working in back_end.it fetches
2.Actually the requirement is to generate the excel report
4 (sniped) it is working for less than 17000 records.So i tried to use the below code
5.i am performing a button on click event.
6. Q_3_Mothly_LC is a sql passed through queryComment
-
-
-
i tried this, Tools|Options, Editor tab and check that Require Variable Declaration is turned on,but i idnt get the resultComment
-
The problem with this option is that it applies to any new objects you create in the future, not to existing ones.
To get the checking in an existing module (or form), add the statement Option Explicit at the start. (All the "Require... " option does is insert this into every new module.)
This won't necessarily solve any problems, but if you have any typos in your variable names, parameters or whatever, it will highlight them. They're a surprisingly common cause of issues.Comment
Comment