CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    How to pass parameter to a ADODC.Command

    I'm using Data Environment to develop my application. In doing some reports, i have to pass parameters to a Commnad object, so that i can specific the range of report. How can i do that ???




  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: How to pass parameter to a ADODC.Command

    let's assume that you have created Command1 based on an SQL statement like "select * from Application where path = ?".
    Then, when you execute that command, you write
    DataEnvironment1.Command1 "your param goes here"

    i.e. you just call your command as if it were a method of the Dataenvironment object and pass the parameters as in any other method call.


  3. #3
    Guest

    Re: How to pass parameter to a ADODC.Command

    I still don't understand. Can you give me a small example ?? Besides, I now, i don't have to do a DataEnvironment.Command1.xxxxx directly. I only do a rptProductionList.Show ( rptProductionList is the datareport ), so how can i pass the parameters ???




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured