Results 1 to 2 of 2

Thread: I need help please in reading a single records from SQL

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260

    Question I need help please in reading a single records from SQL

    I have this code :
    Static ConnectionString As String = SQL_CONNECTION_STRING
    Dim WarehouseConnection As New SqlConnection(ConnectionString)
    Dim strSQL As String = "SELECT * " & _
    "FROM Orders " & _
    "WHERE OrderID = '" & (CType(DataGrid1(currentrow, 0), String)) & "'"
    Dim ProductAdapter As New SqlDataAdapter(strSQL, WarehouseConnection )

    I get the order number from a double click on datagrid. Now .. I just want to "chain" out to my file .. Orders .. and bring back that single records data. I have the sqlcmd statement but my connection string keeps erroring out. I keep on getting errors ..

    Thanks
    Last edited by gollnick; Apr 14th, 2003 at 02:39 PM.
    William E Gollnick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width