General information
Category:
Forms & Form designer
Title:
Form - Control from FORM to FORM
Hi VFP Users,
I have a problem. Multiple forms.
Main Form
Load - code runs
set procedure to proc_prg (Procedures and Functions)
Init - code runs
Search Field
COMMAND Button - click to run search
User enters search info and click s on search command button
if a match occurs
DO PROCLIST (determines which one of seven forms to DO and
then DO FORM (ie.FORMTHREE))
read events
FORMTHREE displays but the init code
clear events
return to main form (FORMONE)
Repeat above, But Search Button Command will not do anything!
I put read/clear events in because some events would not fire in the ie. FORMTWO.
All I am trying to do is use main form; seven display forms, and the seven reports that print the selected record.
Search from Main Form
Display Correct Form for the Record Type (1-7)
and then print command buttom on display form to print the record and then back to Main form.
Main Form: Dataenvironment (top level) (1 Database with 8 Tables with relationships AND only AUTO OPEN specified in main form)
FORM (1-7) SET DATASESSION to same as MAIN FORM
REPORTS (1-7) One Detail Page OF THE SELECTED RECORD (SCOPE NEXT 1)
How does one go from FORM to FORM back to MAIN FORM correctly?
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