简体   繁体   中英

MS-Access: move to a NavigationControl using vba

I have a form called frmAanlog with a NavigationControl on it. Using vba I would like to move to one of the forms that you normally reach by clicking on a NavigationButton in the Navigation Control. The form I would like to reach is called frmNavPlant.

I have tried variations of the following line, without success:

DoCmd.BrowseTo acBrowseToForm, "frmNavPlant", "frmAanlog.frmNavPlant"

Any suggestions here? Preferably I would jump to a specific record-ID in frmNavPlant, but already happy with a working jump to the correct form, with the NavigationControl indicating the right page.

Must reference Navigation Form subform container control name, not form name, in Path argument. Access defaults to NavigationSubform when Navigation Form is created.

DoCmd.BrowseTo acBrowseToForm, "frmNavPlant", "frmAanlog.NavigationSubform"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM