General information
Category:
Coding, syntax & commands
Title:
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
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