Information générale
Catégorie:
Codage, syntaxe et commandes
> 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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement