TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sailor_cinbad
NA
8
0
Search Engine in vb.Net
Jul 20 2004 11:15 PM
ok.. take a look at this piece of code.. DataAdapter_RunNum2.SelectCommand.CommandText = _ "SELECT [Main Table].Date, " & _ "[Main Table].Remarks, " & _ "[Project Table].Name, " & _ "[Project Table].Number, " & _ "[Document Table].Type, " & _ "[File Table].Type, " & _ "[User Table].Name " & _ "FROM ((((([Main Table] " & _ "INNER JOIN [Project Table] " & _ "ON [Main Table].projectID = [Project Table].projectID) " & _ "INNER JOIN [Document Table] " & _ "ON [Main Table].documentID = [Document Table].documentID) " & _ "INNER JOIN [File Table] " & _ "ON [Main Table].fileID = [File Table].fileID) " & _ "INNER JOIN [User Table] " & _ "ON [Main Table].userID = [User Table].userID) " & _ "INNER JOIN [Company Table] " & _ "ON [Main Table].companyID = [Company Table].companyID) " & _ "WHERE [Main Table].[Running Number] = 5 " DataAdapter_RunNum2.SelectCommand.ExecuteNonQuery() DataAdapter_RunNum2.Fill(DataSet_RunNum2) i'm really confused.. * why is it i cannot change the number 5 to a '" & cboRunNum.Text & "'?.. whereby the cboRunNum has a list of numbers that can be used.. * what does "expr1, expr2.." refers to? * how do i make a search based on dates?.. as in between 20/07/2004 and 16/07/2004?.. what are the command codes like?.. can i put it as.. "WHERE [Main Table].date >= '" & cboStart.Text & "' " & _ "AND [Main Table].date <= '" & cboStop.Text & "' " & _ i tried it but it doesnt work.. anyone?.. help!..
Reply
Answers (
3
)
Newbie needs help with DirectX.
Crystal Report: Row Selection