Added record not showing in navigation frm (1 Viewer)

foxtet

Registered User.
Local time
Tomorrow, 01:10
Joined
May 21, 2011
Messages
129
In the database I have problem in showing the added data to the form that is in navigation form.

I have used the following code in the after update event of frmAddNew
Private Sub Form_AfterUpdate()

Dim lngSNO As Long
Dim frm As Form
Dim rs As DAO.Recordset
If IsFormLoaded("frmCargoSearch") Then
Set frm = Forms("frmCargoSearch")("tblCargoMaster subform").Form
lngSNO = frm!Sno
frm.Requery
Set rs = frm.RecordsetClone
rs.FindFirst "[sno] = " & lngSNO
If Not rs.NoMatch Then frm.Bookmark = rs.Bookmark
rs.Close
Set rs = Nothing
Set frm = Nothing
End If
End Sub

When try to add in frm search it works but in navigation form it doesn’t.
Need your help to overcome this

Thank you
foxtet
 

foxtet

Registered User.
Local time
Tomorrow, 01:10
Joined
May 21, 2011
Messages
129
Why the added records does not reflect in sub form which is in navigation form

any help is appreciated.

foxtet
 

Attachments

  • NavigationForm.zip
    1.2 MB · Views: 178

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 05:10
Joined
May 7, 2009
Messages
19,169
my good friend you may try this. i hope nobody challenge me this time.
 

Attachments

  • NavigationForm.zip
    409.6 KB · Views: 190

RuralGuy

AWF VIP
Local time
Today, 15:10
Joined
Jul 2, 2005
Messages
13,826
Isn't challenge a good thing? It improves the product, right? Unless it was nasty of course.
 

Users who are viewing this thread

Top Bottom