Problems with Generating Objects

darkmastergyz

Registered User.
Local time
Today, 04:55
Joined
May 7, 2006
Messages
85
I'm able to create objects using the create object function, but, I have some problems:

1) I can't create objects on my current form. The form needs to be in design view, and you can't make the current form go to design view
2) You can't name objects on the form
3) There are actions which I want the buttons I'm generating to do, but when I generate them, I'm not able to change them

Do you have any suggestions, or alternative solutions. To give some background on what I'm doing, basically for all records which meet a criteria, I'm generating text boxes, and buttons which have actions connected to them. Thanks!
 
I'd design subforms for the different functions, buttons, actions, etc... that you might want to make available for different record types. In the Current() event of the form, determine the type of the current record, and then change the .SourceObject property of your subform control to show the subform that handles the current record type.

The subform can access all the members of the parent using Me.Parent. The main form can access all the members of the subform using Me.SubformControl.Form.

Cheers,
 

Users who are viewing this thread

Back
Top Bottom