General information
Category:
Visual FoxPro and .NET
Title:
Parameterized queries
Hi all,
I'm trying to use VB.Net to Access a Visual Foxpro database. The problem I'm having is when I try to create a OleDbDataReader object from the OleDbCommand. If my query is "Select * from Status" the datareader object is created just fine. If the query is "Select * from Status where status_id = ?" then I get the error "Object reference not set to an instance of an object". The program is basically the one in the VS documentation but using the OleDbConnection instead of the SqlConnection. The SqlConnection object works just fine. Can someone help?
Thanks
Bob
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only