V
vsta2005
Hi all,
I'm quite new to vb 2005 and need some help:
I have 2 forms say formA and formB, formA has a dataset1,
table1adapter & table1bindingsource (backend database is access). It
also has a datagrid1 and a bunch of other controls and they're all
bound to the table1bindingsource. There is no binding navigation on
this formA, the user is allow to navigate using the datagrid1, edit
the data using the controls. If the want to add new record, they have
to click on button1
The button1 on formA, when clicked, formB will show, which also has
dataset1, table1adapter and table1bindingsource and a numbers of
unbound controls which basically allow the user to enter data for the
new record. Once they click on the OK button on formB, I do some
backend checking for the data, if all is well, then I generate the key
for the new record then add the new record into the dataset1 and then
update the database and formB is then closed
The new record is added to the backend database, however, the
table1bindingsource on formA is not refreshed and thus not displayed
on formA after formB is closed.
Any help would be greatly appreciated.
I'm quite new to vb 2005 and need some help:
I have 2 forms say formA and formB, formA has a dataset1,
table1adapter & table1bindingsource (backend database is access). It
also has a datagrid1 and a bunch of other controls and they're all
bound to the table1bindingsource. There is no binding navigation on
this formA, the user is allow to navigate using the datagrid1, edit
the data using the controls. If the want to add new record, they have
to click on button1
The button1 on formA, when clicked, formB will show, which also has
dataset1, table1adapter and table1bindingsource and a numbers of
unbound controls which basically allow the user to enter data for the
new record. Once they click on the OK button on formB, I do some
backend checking for the data, if all is well, then I generate the key
for the new record then add the new record into the dataset1 and then
update the database and formB is then closed
The new record is added to the backend database, however, the
table1bindingsource on formA is not refreshed and thus not displayed
on formA after formB is closed.
Any help would be greatly appreciated.