Import from 'Filtered' Excel Spreadsheet

F

franc75

Hi.

I am trying to import a FILTERED Excel spreasheet into an access table.

One of the columns has numerous blank cells, so I am using a 'non-blanks'
filter to reduce it down to just the rows that contain info. These are the
rows I want to import.

By using the DoCmd.TransferSpreadsheet ... etc, it works perfectly, but it
still imports the blank rows as well.

Is there a way to import just the non-blanks ?
 
J

John Nurick

The simplest thing is probably to import them all and then use a delete
query to get rid of the ones you don't want, something like

DELETE FROM MyTable WHERE TheField IS NULL;

or

DELETE FROM MyTable WHERE TheField = "";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top