Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OleDb Parameters
Message
From
27/09/2004 23:25:09
 
 
To
27/09/2004 21:44:37
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00946213
Message ID:
00946529
Views:
27
Which statement is it crashing on and what's the error that you're getting? All you've said is that it's not working, but you haven't said *what's* not working. Have you tried debugging it and stepping through the code?

~~Bonnie


>I tried it too, but still cannot work for me,
>
>
>
>
>String selectCmd = "select * from paperoll where supNo = ?psupNo";
>
>OleDbDataAdapter daPaper = new OleDbDataAdapter(selectCmd, oleDbConnection1);
>
>daPaper.SelectCommand.Parameters.Add(new OleDbParameter("@psupNo",OleDbType.Char,5));
>
>daPaper.SelectCommand.Parameters["@psupNo"].Value = mySelect.Value;
>
>daPaper.Fill(dsPaper, "paperoll");
>
>
>----------------
>
>String selectCmd = "select * from paperoll where supNo = ?psupNo";
>OleDbDataAdapter daPaper = new OleDbDataAdapter(selectCmd, oleDbConnection1);
>
>daPaper.SelectCommand.Parameters.Add(new OleDbParameter("?psupNo",OleDbType.Char,5));
>
>daPaper.SelectCommand.Parameters["?psupNo"].Value = mySelect.Value;
>
>daPaper.Fill(dsPaper, "paperoll");
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform