Solved Previous code not working Search and Export an excel sheet. (2 Viewers)

smtazulislam

Member
Local time
Today, 15:01
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

  • export some columns in Excel.accdb
    2.3 MB · Views: 112

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:01
Joined
May 7, 2009
Messages
19,230
you change IsNothing() with IsNull()
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:01
Joined
May 7, 2009
Messages
19,230
try this.
 

Attachments

  • export some columns in Excel.accdb
    2.3 MB · Views: 100

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:01
Joined
May 7, 2009
Messages
19,230
you check your query if correct or not.
 

smtazulislam

Member
Local time
Today, 15:01
Joined
Mar 27, 2020
Messages
806

Attachments

  • Capture1.JPG
    Capture1.JPG
    65 KB · Views: 84

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:01
Joined
May 7, 2009
Messages
19,230
you Run it. did it show anything?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:01
Joined
May 7, 2009
Messages
19,230
you Run your Query, does it bring anything?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:01
Joined
May 7, 2009
Messages
19,230
this is the query i get, Nothing, no record.
query.png
 

smtazulislam

Member
Local time
Today, 15:01
Joined
Mar 27, 2020
Messages
806
UPDATE!
 

Attachments

  • export some columns in Excel.accdb
    624 KB · Views: 79

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:01
Joined
May 7, 2009
Messages
19,230
see this one
 

Attachments

  • export some columns in Excel (1).accdb
    2 MB · Views: 85

smtazulislam

Member
Local time
Today, 15:01
Joined
Mar 27, 2020
Messages
806
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...
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:01
Joined
May 7, 2009
Messages
19,230
see again. it will save in MyDocuments (Export.xlsx)
 

Attachments

  • export some columns in Excel (1).accdb
    2 MB · Views: 92

smtazulislam

Member
Local time
Today, 15:01
Joined
Mar 27, 2020
Messages
806
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 ?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:01
Joined
May 7, 2009
Messages
19,230
try again.
 

Attachments

  • export some columns in Excel (1).accdb
    2 MB · Views: 94

Users who are viewing this thread

Top Bottom