Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Database
Database General Discussion
SQL Query
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="rex028, post: 3330, member: 1199"] [CODE] Private Function Getim() If cbSearchAll.Checked Then objDS.Clear() objDS = objUser.Search_tblUser("Select * from tbl_ITEM ") Getrecord() ElseIf cboisearchFD.Text = "" Then objDS.Clear() objDS = objUser.Search_tblUser("Select * from tbl_ITEM where Item_No = '" & txtItemNo.Text & "' or Item_Type = '" & cboItemType.Text & "' or Item_Amount " & cboitemAmount.Text & " ") Getrecord() Else fromday = cboisearchFD.Text & "/" & cboisearchFM.Text & "/" & cboisearchFY.Text today = cboisearchTD.Text & "/" & cboisearchTM.Text & "/" & cboisearchTY.Text objDS.Clear() objDS = objUser.Search_tblUser("Select * from tbl_ITEM where Expire_Day Between #" & fromday & "# and #" & today & "#") Getrecord() End If End Function [/CODE] [CODE] Private Function Getrecord() Try If objDS.Tables(0).Rows.Count <= 0 Then MsgBox("Record Not Found") Else dgimsearch.DataSource = objDS.Tables(0) End If Catch ex As Exception End Try End Function[/CODE] Why it displays every record even there is no input ??????? [/QUOTE]
Insert quotes…
Verification
Post reply
Database
Database General Discussion
SQL Query
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom