T
troy23
I have a main form which has a balance for each record.
This form opens a pop up form where I enter payments.
When the pop up closes it should update the balance on the main form.
When I try to use requery in my code I find the main form suddenly
disappears.
I need it to update the balance and stay on the record that called the
pop up
Here is my code for the pop up. It is run from a close button and It
basically makes sure the record is the one that was called.
Dim FormName As String, SyncCriteria As String
Dim F As Form, rs As Object
FormName = "frmInvoiceMain"
Set F = Forms(FormName)
Set rs = F.RecordsetClone
SynchCriteria = "OrderID = " & Me.InvoiceID
rs.FindFirst SynchCriteria
F.Bookmark = rs.Bookmark
DoCmd.Close
This form opens a pop up form where I enter payments.
When the pop up closes it should update the balance on the main form.
When I try to use requery in my code I find the main form suddenly
disappears.
I need it to update the balance and stay on the record that called the
pop up
Here is my code for the pop up. It is run from a close button and It
basically makes sure the record is the one that was called.
Dim FormName As String, SyncCriteria As String
Dim F As Form, rs As Object
FormName = "frmInvoiceMain"
Set F = Forms(FormName)
Set rs = F.RecordsetClone
SynchCriteria = "OrderID = " & Me.InvoiceID
rs.FindFirst SynchCriteria
F.Bookmark = rs.Bookmark
DoCmd.Close