Results 1 to 2 of 2

Thread: Simple Query passing problem!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    68

    Unhappy

    I have an ADODC control on the form and I want to pass the strSQL string that you helped me write to sequal. When I was using the Data Enviroment I used the following code:

    Set MAXData = DataEnviroment.Connection.Execute(strSQL, , adCmdText)

    Which worked but how do I pass the same command to the ADODC control in order to recieve the same result?

    Thanks for your help

    Simon

  2. #2
    Lively Member Dr_Evil's Avatar
    Join Date
    Mar 2000
    Location
    Columbus, OH
    Posts
    105
    To use a sql string with the data control do this.
    Right click on the control, go to ADODC Properties. Click RecordSource. Set CommandType to adCmdText and enter the SQL string in the Command Text box.
    Dr_Evil
    Senior Programmer
    VS6 EE
    VS.NET EA

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