Discussion Locked

MS Access - DoCmd.GoToRecord

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a Form Frm_Sub_Transaction_List & the below code word fine

DoCmd.GoToRecord acDataForm, "Frm_Sub_Transaction_List", acGoTo, Rec_No

But when I attach Frm_Sub_Transaction_List to Frm_Main_Transaction_List the code does not work

Can anyone help...
Thanks

4 replies

by donq

You need a commom field ([Rec No]) in the Parent + Child Form. Base your sub-forms Record Source property on a query containing the common field and enter "[Forms].[Main Transaction List].[Rec No]" (without the quotes) in the sub forms Criteria Field under Rec No.

This discussion is closed to new replies.