View Single Post
  #1 (permalink)  
Old March 7th, 2006, 07:34 PM
saif44 saif44 is offline
Authorized User
 
Join Date: Feb 2006
Location: , , .
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default you are a doctor

i would like to say a big thanx to Imar. You are a Doctor :D .

i have spent a day to find out what was the problem, and i could not figure it out. I know that you have to add a where clause, but when things get to loaded you just don't know what's happening

for the interest of the readers, the problem with the code posted above is that there was no 'Where' clause in the 'finddept' function. if anyone interested to know how to search a data grid, copy the code in the first post and add in the under the function 'findDept' the following code:

Dim queryString As String = "SELECT * from department where depaManagerName = @depaManagerName"

and remove the following line:
Dim queryString As String = "SELECT * from department"

enjoy it and thanks very much Imar you were very helpful.