Smokeywade
Member
- Joined
- Sep 11, 2007
- Messages
- 22
- Programming Experience
- 3-5
I know this is very simple but I cant get the syntax down...
What I'm trying to do is connect to my sql database and pull up a record from a date range that the user puts in...But I just cant get the syntax down...here is my code help will be great.
What I'm trying to do is connect to my sql database and pull up a record from a date range that the user puts in...But I just cant get the syntax down...here is my code help will be great.
VB.NET:
Public frmDate As String
Public toDate As String
Private Sub frmWeResults_Load
'My problem is here -
Dim cmd1 As New SqlCommand("Select * from TABLE where TABLE_DATE in" + frmDate + "to" + toDate +, cnn1)