Hello,
I've searched this problem everywhere, but couldnt find any solution, that would help my case...
I have a form, where in a frame with the option boxes i can choose either out or in data, by choosing the selected option i then click on a button, that has a code to export the data to excel.
These queries have at least 5 tables each and out qry has at least thousand records.
When i click on the button, the window for saving the file to my directory path appears, but after clicking on save, the screen freezes, access is not responding and the only option is to close the whole program, sometimes when i try to restore the program it loads for 15minutes and sometimes the excel appears but mostly it doesnt and have to restart the whole thing. Using SQL server as backend.
How can i solve this problem?
I would appreciate any suggestions.
I've searched this problem everywhere, but couldnt find any solution, that would help my case...
I have a form, where in a frame with the option boxes i can choose either out or in data, by choosing the selected option i then click on a button, that has a code to export the data to excel.
Code:
Dim strQry As String
Dim strAgent As String
If (srchFrame = 1) Then
strQuery = "qry_in"
Else
strQuery = "qry_out"
End If
DoCmd.OutputTo acOutputQuery, strQuery, acFormatXLSX, , True
These queries have at least 5 tables each and out qry has at least thousand records.
When i click on the button, the window for saving the file to my directory path appears, but after clicking on save, the screen freezes, access is not responding and the only option is to close the whole program, sometimes when i try to restore the program it loads for 15minutes and sometimes the excel appears but mostly it doesnt and have to restart the whole thing. Using SQL server as backend.
How can i solve this problem?
I would appreciate any suggestions.