I am not sure I understand what you're trying to do...
You have a variable called strName, but never assign it a value. And where does 333-00-1492 come from? I thought you needed 767?
Anyway, if I were you, I'd try a simple query first. E.g.
"select BName from Borrower where TaxID = 767"
assuming the TaxId is a number or
"select BName from Borrower where TaxID = '767'"
If that works, then you can modify the statement to insert a parameter:
"select BName from Borrower where TaxID = @taxId"
Then you can set up a parameter for the @taxId param.
Hope this helps,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004