A
al
Greetings,
I have an app. One MDI parent(main),one dataset,two MDI childs,
Employees and Custoemrs,respectivly. User starts app, cliks button
to show Employees form and dataadapter(DA) then fills dataset from
Select * from employee. Then user clicks another button to show the
Customers Form and DA fills the same dataset from Select * from
customers. The problem is when the user tries to refresh the first
form, Employees form in this case, an error occurs saying mismatch
happens betweeen dataset tables then shows some fields from customers
table in Employees form. The tables I use are ActiveMdiChild.Text
property which is passed to the dataadapter.fill method.
Case Refresh
If ActiveMdiChild is ActiveMdiChild Then
DatasetNorthwind.Tables(ActiveMdiChild.Text).Clear()
DataadapterNorthwind.Fill(DatasetNorthwind,ActiveControl.Text)
End If
End Case
It seems to me that DA fills the last used table, no matter what.
Help please.
MTIA,
Grawsha
I have an app. One MDI parent(main),one dataset,two MDI childs,
Employees and Custoemrs,respectivly. User starts app, cliks button
to show Employees form and dataadapter(DA) then fills dataset from
Select * from employee. Then user clicks another button to show the
Customers Form and DA fills the same dataset from Select * from
customers. The problem is when the user tries to refresh the first
form, Employees form in this case, an error occurs saying mismatch
happens betweeen dataset tables then shows some fields from customers
table in Employees form. The tables I use are ActiveMdiChild.Text
property which is passed to the dataadapter.fill method.
Case Refresh
If ActiveMdiChild is ActiveMdiChild Then
DatasetNorthwind.Tables(ActiveMdiChild.Text).Clear()
DataadapterNorthwind.Fill(DatasetNorthwind,ActiveControl.Text)
End If
End Case
It seems to me that DA fills the last used table, no matter what.
Help please.
MTIA,
Grawsha