Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search Form
Message
 
To
18/04/2000 01:03:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00360731
Message ID:
00361625
Views:
24
John,
First, move the IF...ENDIF statement that checks _tally BEFORE your REPORT FORM command. You want to avoid loading an 'empty' report form.

Second, when you say "It comes on for a moment" are you refering to the form or the report? If the form, you never get to the point where you can click the button that callse the report?

Sorry, but we need more information to answer you more fully.

Barbara



>> Help
>> I've created an insurance tracking applacation that tracks Client and > payment info. The app is driven by a master menu form, that links to
>> minor menu forms. One of the options I'm trying to create is to give
>> the user the abliity to enter data in a form the translate this data into a memory var to start a Query. I created a form with one text box and one command buttom on it. In the click event of the command button I put the folling code.
>
>> LOCAL cGroupCode
>> cGroupCode = THISFORM.text1.VALUE
>> SELECT * FROM client ;
>> WHERE group_code = cGroupCode ;
>> INTO CURSOR Mycursor
>> REPORT FORM POLICY.FRX FOR group_code = cGroupCode PREVIEW
>> IF _TALLY != 0
>> wait window ' FOUND DATA, WILL NOW PRINT '
>> ELSE
>> wait window ' NO DATA MATCH FOUND, TRY AGAIN '
>> ENDIF
>
>> RETURN
>
>> When I run the form as a stand alone within VFP it works fine. When > I try to link it to my calling (master ) form, it comes on for a >second then dissapears. This happend to me when I first started using > VFP 6.0, and it turned out to be because I didn't have a READ EVENT IN MY START UP CODE. Can I get a hand, I'm thinking I should become a checken rancher.
>Thanks John
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform