Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » .NET Database & Reporting

Post new topic   Reply to topic
constraints when connect to excel using vb.net
View previous topic :: View next topic  
Author Message
warrenquek
Newbie


Joined: 20 Oct 2005
Posts: 3

PostPosted: Oct 20th, 2005 02:55 AM    Post subject: constraints when connect to excel using vb.net Reply with quote

Hi all, im currently doin a school project and im facing problems to
set constraints to the coding connection to excel..

Example:
i hav a spreadsheet call SUMMARY
1 of the column is called Status
There are 3 different Status (Closed, Open, Void)

i wan to display the rows where Status is Open

i try this but it cant work

Select * From [SUMMARY$] where Status = Open

Select * From [SUMMARY$] where [SUMMARY$P = Open]

anyone of you know what is the correct coding to only take information
where the Status is Open??

Thanks in advance to whoever can help..
Back to top
View user's profile Send private message
DoobieKeebler
Moderator


Joined: 17 Jun 2005
Posts: 254
Location: 181°15'2.003"W, 93°5'16.956"N

PostPosted: Oct 25th, 2005 02:34 PM    Post subject: Reply with quote

Not trying to be cute here, but the SELECT statement you have should have quotes.

Select * From [SUMMARY$] Where Status = "Open"

If that's not the problem then I'd guess the problem is in another part of your code.
_________________
Always take into account what a user would never ever in a million years do, because someone will.

"In theory, there's no difference between theory and practice. In practice, there is." -- Yogi Berra
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » .NET Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic