Calling subroutines in subforms

F

Funkykase

Hi All

I have a single master menu form that is set up kind of like a web
page in that it has frame type areas. One has a heading, one a company
a logo, the main work are is a subform, and there is a tree menu.
Selecting nodes in the tree menu changes the subform and hence the
operation being performed on the database.

I also have a frame on the main form that has a standard set of
buttons (I.e. Save, Delete, Move, Find, etc). My problem is that I
want these standard buttons to operate on the data in the subforms

Thus far I have tried:
1. Running a command from the master form (format: DoCmd.GoToRecord ,
frmTreeMenu_SubForm.Name, acNext), but I get a 2489 error subform not
open
2. Calling a public routine (format: Call
frmTreeMenu_SubForm.Form.MoveNext) on a subform. For the MoveNext
action, the routine executes, but I get a 2105 error - cant move to
specified record

If anyone could help, it would be much appreciated with answers to the
above, or if there is another way to easily accomplish this
functionality (single routines to operate on numerous data sets) like
toolbars, etc

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top