Results 1 to 4 of 4

Thread: Connection/Data Source Problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Pilipinas
    Posts
    441

    Connection/Data Source Problem

    I add a command in a connection which is "Command1"
    I also add a child command in "Command1" which is "Command2"
    Then I add a DataReport1 and set the following:

    DataSource = DataEnvironment1
    DataMenber = Command1

    Now my problem is when im trying to refresh all the data in DataEnvironment1 to view in DataReport

    When using the code;

    DataReport1.Datasource = DataeEnvinoment1.rsCommand1
    DataReport1.Show

    this message show;

    Arguments are of the wrong type, are out of accetable range, or are in conflict with one another


    Kindly help me solve my problem pls??

  2. #2
    Hyperactive Member
    Join Date
    Feb 2006
    Location
    Philippines
    Posts
    468

    Re: Connection/Data Source Problem

    When using the code;

    DataReport1.Datasource = DataeEnvinoment1.rsCommand1
    DataReport1.Show

    this message show;
    it should be like this
    DataReport1.Datasource = DataeEnvinoment1
    datareport1.datamember="command1"
    DataReport1.Show

  3. #3
    Fanatic Member eimroda's Avatar
    Join Date
    Jul 2000
    Location
    Philippines
    Posts
    642

    Re: Connection/Data Source Problem

    VB Code:
    1. SET DataReport1.Datasource = DataeEnvinoment1.rsCommand1
    On Error GoTo Hell

    Hell:
    Kill Me


    Food For Thought:

    - Do not judge a book... if you're not a judge!


  4. #4
    Hyperactive Member
    Join Date
    Feb 2006
    Location
    Philippines
    Posts
    468

    Re: Connection/Data Source Problem

    oops i fotgot the data binding collection "set"

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