chowchow123
Active member
- Joined
- Sep 6, 2007
- Messages
- 34
- Programming Experience
- 1-3
Hi
I have 2 identical forms, 1 is readonly and the other is editable. When I save I can get form 1 to save and close before opening form 2. However, since the form contains tabbed control, how do I ensure that if I am saving/editing information in tab2 record 1 in form 1 that once the form is saved it will open form 2 in tab2 with record 1 displayed. At the moment it just opens on tab1 - below is the code that I use for the save button
I have 2 identical forms, 1 is readonly and the other is editable. When I save I can get form 1 to save and close before opening form 2. However, since the form contains tabbed control, how do I ensure that if I am saving/editing information in tab2 record 1 in form 1 that once the form is saved it will open form 2 in tab2 with record 1 displayed. At the moment it just opens on tab1 - below is the code that I use for the save button
VB.NET:
Me.Validate()
Me.Trial_membershipBindingSource.EndEdit()
Me.Trial_membershipTableAdapter.Update(Me.SandsdbDataSet.trial_membership)
Dim ssTrialmemform2 As New Trialmemform2
ssTrialmem2.Show()
Me.Close()