custsoft
Programmer
- Aug 29, 2000
- 41
I have a startup form that allows a person to select an existing record from a datagrid. After you select a record to change, the second form displays the details of the selected record in a text box format. Once the update button is selected on the second form I want to update that record in the datagrid on the first form. In the second form I dimension the first form as "Public frmFirstForm As New frmFirstForm" which allows me to enter the following code on exit from the second form:
frmFirstForm.lblOwnerSelect.Text = "this is it"
frmFirstForm.DstCemeteryOwner1.Clear()
frmFirstForm.oledb_adapCemetery.Fill(frmFirstForm.DstFirstForm)
The problem is when I close the second form nothing is changed on the first form. If I do a frmFirstForm.showDialog() I see the first form with the updated data but the first form with the old data is still displayed. If I don't do the showDialog nothing changes. I would appreciate any help anyone could be with this. Thanks in advance.
frmFirstForm.lblOwnerSelect.Text = "this is it"
frmFirstForm.DstCemeteryOwner1.Clear()
frmFirstForm.oledb_adapCemetery.Fill(frmFirstForm.DstFirstForm)
The problem is when I close the second form nothing is changed on the first form. If I do a frmFirstForm.showDialog() I see the first form with the updated data but the first form with the old data is still displayed. If I don't do the showDialog nothing changes. I would appreciate any help anyone could be with this. Thanks in advance.