Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
How to reference a form field
I have a form that has a button which when pressed instanciates another form ( a report generator). Under the Double Click method it:
lodialog=CreateObject("myclass",etc.). Within the myclass object, I dynamically create fields based on a table (to act as selection criteria). On this myclass form I have a button for report Preview and a method onprintreport. The onprintreport method does an SQL to create a cursor that the report is based on. I need the report to receive the contents of the dynamic field in order to print:
Selection Criteria: . How do I refer to the field within the report? I tried loDialog.CPageFrame1.cboField.Value and this works within the lodialog screen during the SQL but not when the report itself comes up.
Any ideas?
Thanks in Advance
Sandi Cassidy
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