Results 1 to 4 of 4

Thread: Data Environment - HELP!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    148

    Exclamation Data Environment - HELP!

    Howdy!

    Is it possible to create a Data Environment through code and then connect a data report to it? If so, How?

    Because,I have a Data environment with a report connected to it.
    But, I need to change the SQL statement in the Data environment during run-time! - That is my goal!


    Thanx


    [Edited by hyme on 08-01-2000 at 09:31 AM]

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    148
    I can change the Data Environment like this:

    DE.Commands("cmFormu").CommandText = "Select * from Client ORDER BY Index"

    But, how to you update the text fields on a Data Report
    attached to it?

    I get the error

    "datafield "cmFormu.Client.Index not found"

  3. #3
    Addicted Member
    Join Date
    May 2000
    Posts
    188
    I'm not completely sure what you are trying to do but... you could take a look at a microsoft article "HOWTO: Dynamically Populate a Data Report in Visual Basic" at http://support.microsoft.com/support.../Q240/0/19.ASP

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    148
    Thanx a million
    It's exactly what I was looking for!

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