Help with opening a sub form with code

battenberg

Burning candles both ends
Local time
Today, 04:30
Joined
Sep 25, 2006
Messages
118
Hi All,

how do you open a form and a sub form using VBA..?
I need to be able to pass a data string to an openform/findrecord sub.

The form I want to pass the openform/findrecord command to, is a sub form.

I can get it to open as an individual form but I want to open the parent form and have the correct record in the sub form showing...

I need code along the lines of:

"open and show subform on 'strData' record, show the parent form as well."

Can anyone help???
 
Last edited:
docmd.openform "YourFormName"

The suform is embedded in the form and is also opened.
 

Users who are viewing this thread

Back
Top Bottom