Click to See Complete Forum and Search --> : is this possible


urs
October 17th, 2001, 03:21 PM
hi
i have to do this any how.
i got an mdi(parent) form and 7 mdi(child) forms
i got buttons on mdi(parrent) for adding,printing,previous record,next record,etc..........
now i want is which ever mdi(child) is active (cause more than 1 mdi(child) can loaded) then those button should work on the recordset of the active form.
is this possible??????????
any help will b a gr8 help
thanx
sarfaraz.........

dcaillouet
October 17th, 2001, 10:02 PM
Try something like the following and see if it works:

In each form have a set of Public subs to MoveFirst, MoveLast, AddNew, etc. Each sub would be named the same on each form.

Whenever the button is pushed in the mdi parent you could run code like:
ActiveForm.MoveFirstRecord
ActiveForm.AddNewRecord
etc.

In reverse, each time a form was activated, it would be up to the active form to have logic to disable and enable buttons when appropriate.