Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO and parmaeterized views...
Message
From
13/09/2001 11:20:26
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00555585
Message ID:
00555949
Views:
23
Vlad,

Thanks for the response. If I set the recordsource of the ADODC control to "select * from customer where cust_id = @mycustid". How do I set the value of the parameter?

Thanks

Jim


>Hi!
>
>Try following:
>
>cmdCommand = CreateObject("ADODB.Command")
>cmdCommand.ActiveConnection = objConnection && connection object if you already prepared it
>cmdCommand.CommandType = adCmdTable
>cmdCommand.CommandText = "MyViewName"
>
>parParam = cmdCommand.CreateParameter("ParamName", adVarChar, adParamInput, 30, "Test")
>cmdCommand.Parameters.Append(parParam)
>
>cmdCommand.Execute
>
>HTH.
>
>>Hello,
>>
>> I have a form with the adodc control on it. I am linking the adodc to a SQL server database. I want to set the recordsource to a parameterized view on the database. How do I pass the parameter to the view through the adodc control?
>>
>>Thanks,
>>
>>Jim
Thanks

Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform