|
-
October 17th, 2001, 03:21 PM
#1
is this possible
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.........
-
October 17th, 2001, 10:02 PM
#2
Re: is this possible
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|