The + is not the String concatination symbol for VB.net. You need to use &.Try this:Dim MyCommand As SqlDataAdapterMyCommand = new SqlDataAdapter("select * from Request T1, Users T2 where RunID=" & intRun_Num.tostring & " and T1.UserID = T2.UserID ORDER By Username", MyConnection)Also, you should try to avoid this sort of join syntax. Your Query would be best expressed as SELECT t1.*, t2.*FROM Request t1INNER JOIN Users t2 ON t1.UserID = t2.UserIDWHERE t1.RunID = YourRunIDHereORDER BY t2.UserName
I'm guessing on what tables have the RunID and the UserName, so be sure to check that.Hope this helps!Michael<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda>Opinions expressed in this post are not necessarily those of TeleVox Software, inc. All information is provided "AS IS" with no warranties and confers no rights.