Solved Previous code not working Search and Export an excel sheet.

smtazulislam

Member
Local time
Today, 04:07
Joined
Mar 27, 2020
Messages
806
I would like to export selected rows data in an excel.
Before it working well. Today update to import a dialogs box then facing "Not IsNothing" not working.
Where I have wrong.
 

Attachments

you change IsNothing() with IsNull()
 
you check your query if correct or not.
 

Attachments

  • Capture1.JPG
    Capture1.JPG
    65 KB · Views: 97
you Run it. did it show anything?
 
you Run your Query, does it bring anything?
 
this is the query i get, Nothing, no record.
query.png
 
see this one
Thank you very much. Now search button is work good. But Export button is same as before.
What I need when search result is display in the list box then I choice some rows and selected rows bring to export in excel...
 
see again. it will save in MyDocuments (Export.xlsx)
Thank you very much Sir, Nice work.
One more question. If I would like to SAVE an excel file in FIXED path (D:\3. EMPLOYEES Department) AND file name is "Export Current date"
What to do there ?
 

Users who are viewing this thread

Back
Top Bottom