weightinwildcat
Programmer
Hi. I need to run a control on one subform from a button on another subform. Alternatively, I need to scroll through records on one subform by using a button on another subform. What VBA syntax should I use?
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.
'To move next
Dim frm as access.form
Dim rs as dao.recordset
set frm = me.parent.othersubformcontrolname.form
set rs = frm.recordset
if rs.absoluteposition = rs.recordcount - 1 then
msgbox "last record"
else
rs.movenext
end if