Click to See Complete Forum and Search --> : DataEnvironment
shaminda
July 16th, 2001, 03:02 PM
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?
John G Duffy
July 16th, 2001, 06:57 PM
What kind of errors are you getting?
John G
shaminda
July 17th, 2001, 10:47 AM
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.
ssmantha
March 25th, 2003, 12:18 PM
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.....
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.