Quote Originally Posted by onlyGirl
Code:
SELECT CallerID, CallerName, PhoneNumber
FROM Caller
WHERE CustomerID = @CustomerID

cmd.Parameters.AddWithValue ("@CustomerId", textbox1.Text)
Cmd will be the name of your command
Yes, this is another way of doing it. You set the Cmd.CommandText = the SQL string and then add the parameters.

OnlyGirl: Does this automatically put in single quote around the parameter value if they're needed?