Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
266 Points
287 Posts
Nov 27, 2011 04:05 AM|LINK
tzahi2010 Mikesdotnetting Try wrapping the sheet name in single quotes if it has a space in it: OleDbCommand cmd = new OleDbCommand("SELECT O FROM ['$Main Table']", oledbConn); could u help me again write the connection to etsablish with a xlsx file and a connection with it to a Work sheet?
Mikesdotnetting Try wrapping the sheet name in single quotes if it has a space in it: OleDbCommand cmd = new OleDbCommand("SELECT O FROM ['$Main Table']", oledbConn);
Try wrapping the sheet name in single quotes if it has a space in it:
OleDbCommand cmd = new OleDbCommand("SELECT O FROM ['$Main Table']", oledbConn);
could u help me again write the connection to etsablish with a xlsx file and a connection with it to a Work sheet?
tzahi2010
Member
266 Points
287 Posts
Re: Problem excel C#
Nov 27, 2011 04:05 AM|LINK