Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
strSQL="Update Static Set LastRecord=" & Me.ID
CurrentDB.Execute strSQL,dbFailOnError
Private Sub Form_Load()
' Make sure you have a reference to
' Microsoft DAO x.x Object Library
Dim rs As DAO.Recordset
Dim lngLeadID As Long
lngLeadID = DLookup("LastRecord", "Static")
Set rs=Me.RecordsetClone
Me.Recordset.FindFirst "LeadID=" & lngLeadID
If rs.NoMatch Then
MsgBox "Ooops"
Else
Me.Bookmark=rs.Bookmark
End If
End Sub
Private Form_Unload(Cancel As Integer)
strSQL="Update Static Set LastRecord=" & Me.LeadID
CurrentDB.Execute strSQL,dbFailOnError
End Sub