Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

filling dataset from xls

Status
Not open for further replies.

lunchbox88

Programmer
Feb 17, 2004
208
US
I'm having an issue filling a dataset from an excel file.

Creates an OleDB connection to the spreadsheet (no problem), then generates a Select statement to read the worksheet in to the dataset.

It works great IF all the relevant fields in the spreadsheet contain data.

The select is a simple "Select * from [worksheet]". And it's been working great except that one of the new files has optional fields.

In the past I've used isnull(field,default value), but that's been when the data source is static, and I know what fields I'll be reading in.

How can I check for nulls in a select * query?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top