need help with select statement

Reply

Join Date: Aug 2009
Posts: 1
Reputation: diya26 is an unknown quantity at this point 
Solved Threads: 0
diya26 diya26 is offline Offline
Newbie Poster

need help with select statement

 
0
  #1
Aug 31st, 2009
Hi
I'm new to developping applications in VB.net
I need help with a simple select statement.
SQL statement: Select "LYC Code" from [General ledger Setup]

I don't how to write that particular select statement in vb.net when there are spaces in the names of the table and field . Can anyone please help me out.

  1.  
  2. Dim myODBCommand2 As Odbc.OdbcCommand = New Odbc.OdbcCommand
  3. myODBCommand2.Connection = myODBConnection
  4. myODBCommand2.CommandText = " SELECT "LYC Code" FROM [General ledger Setup] "

thanks & regards
Diya
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,793
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 698
Sponsor
Featured Poster
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast

Re: need help with select statement

 
0
  #2
Aug 31st, 2009
  1. Dim someStr As String = "Select ""GL Setup"" From [My Table]"
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 236 | Replies: 1
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC