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

Thread: DataEnvironment

  1. #1
    Join Date
    Mar 1999
    Location
    Ohio, USA
    Posts
    163

    DataEnvironment

    I am using the DataEnvironment with the DataGrid control. The DataGrid is in one form (say form1) and I am doing the selection from another form (say form2). The first time when I do a selection I see the correct data on the datagrid. But if I change the selection criteria, I still see the old data on the DataGrid. I tried refreshing, requiring but its giving me errors all the time. Does any body know how to make the data change when I do a selection?


  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: DataEnvironment

    What kind of errors are you getting?

    John G

  3. #3
    Join Date
    Mar 1999
    Location
    Ohio, USA
    Posts
    163

    Re: DataEnvironment

    deReports.rscmdDateReport_Grouping.Requery
    frmPreviewDate.DataGrid1.Refresh
    Set frmPreviewDate.DataGrid1.DataSource = deReports

    deReports.rscmdDateReport_Grouping.Close

    With the above code code I get the error on the first line which is

    Run-time error '-2147217904
    No value given for one or more required parameters.
    ---------------------------------------
    deReports.rscmdDateReport_Grouping.Requery
    deReports.cmdDateReport_Grouping cmbDepartment, dtStartDate, dtEndDate

    with the above code, I get the following error

    3704 - Operation is not allowed when the object is closed.


  4. #4
    Join Date
    Mar 2003
    Location
    orai disst. jalaun u.p. india
    Posts
    6

    same problem with my project

    ps. tell me how to refresh all the databse....

    the problem with my project is exactly same , however to see desirable results i need to just re-run the project so the parent-child relationships i have made are reset.
    if you have a solution to reset the the dataenvironment during the run-time then the problem will be solved hopefully...

    ps. reply soon its really urgent.....
    cyboidsunny

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