{"id":57,"date":"2011-05-19T16:05:58","date_gmt":"2011-05-19T16:05:58","guid":{"rendered":"http:\/\/www.edcortes.ph\/?p=84"},"modified":"2021-07-11T08:07:50","modified_gmt":"2021-07-11T08:07:50","slug":"filter-an-open-form-from-another-form","status":"publish","type":"post","link":"https:\/\/emcortes.com\/?p=57","title":{"rendered":"Filter an open form from another form"},"content":{"rendered":"<p><em>Scenario (Applies to Access 2003, 2007 and 2010)<\/em><br \/>\nThere are two open forms, frmEmployees and frmTransactions. frmEmployees and frmTransactions are bound to tblEmployees and tblTransactions. They have a common field which is EmployeeID.<\/p>\n<p><em>Task<\/em><br \/>\nFilter a record from frmEmployee where EmployeeID correspond on the selected row in frmTransactions.<\/p>\n<p><em>Approach<\/em><br \/>\nOn the Click Event of TransactionDetail field in frmTransactions, put this code:<\/p>\n<p>Private Sub TransactionDetail_Click()<br \/>\n\u2019 Find the record that matches the control.<br \/>\nDim rs As Object<\/p>\n<p>Set rs = Forms!frmEmployees.Recordset.Clone<br \/>\nrs.FindFirst &#8220;[ID] = &#8221; &amp; Nz(Me.EmployeeID, 0)<br \/>\nIf Not rs.EOF Then Forms!frmEmployees.Bookmark = rs.Bookmark<\/p>\n<p>End Sub<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scenario (Applies to Access 2003, 2007 and 2010) There are two open forms, frmEmployees and frmTransactions. frmEmployees and frmTransactions are bound to tblEmployees and tblTransactions. They have a common field which is EmployeeID. Task Filter a record from frmEmployee where EmployeeID correspond on the selected row in frmTransactions. Approach On the Click Event of TransactionDetail [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,4],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-access","category-programming-notes"],"_links":{"self":[{"href":"https:\/\/emcortes.com\/index.php?rest_route=\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emcortes.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emcortes.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emcortes.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emcortes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":1,"href":"https:\/\/emcortes.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":353,"href":"https:\/\/emcortes.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/353"}],"wp:attachment":[{"href":"https:\/\/emcortes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emcortes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emcortes.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}