General information
Category:
Forms & Form designer
>That is from the navigation toolbar class that is placed on a form generated by the form wizard. You will need to modify cmdAdd.click(). To do this, save the navigation toolbar on your form to another class of your own. Then open wizstyle.vcx in the class browser and copy the code for the add button click event and paste it into your class.cmdAdd.click() event. Around line 170 you will see oAddRec.RunAddForm(), this sets the AddOption property of the object oAddRec. Comment that line out and set the property without using the form.
>
>ie.
>
>** oAddRec.RunAddForm()
>oAddRec.AddOption = OPT_ADD_PARENT
>
Well, I tried that, with no luck. It stopped asking for parent, child or both, but still askes for a value for the primary key. That is populated via a stored procedure, the user has no need to know about it. I tried stepping through, but an error routine seems to call to add record dialog.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only