General information
Category:
Coding, syntax & commands
Actually i am trying to modify Query Maker (third party software). Need to add the cursor to the data environment to have the cursor fields show in the Expression Builder (necessary if my client wants to add a new field to the report). I am not familiar with reports (i am not ashamed to admit that .. yes .. i am a report virigin). All the reports, cursors, etc in Query Maker are created in the code based on the client's answers to questions. Do not see how I could pre-define a data environment. Just so unfamiliar with reports and data environment (have never used it), that I am really fumbling. Guess my inexperience is showing (keep your virgin cracks to yourself).
Brenda
>PMFJI, but if you want to set up the dataenvironment for a report programmatically, then I *believe* the only (never say "only") way to do it is in code and _then_ run the report. There is a dataenvironment associated with reports. Hmmm. Maybe you could run a function in the DoOnEntry method (?) of the report title band...But, honestly, it seems more straightforward to do it in code before doing the report.
>Just my US .02
>>I want to add a cursor (maybe a table built from the cursor fields) to the dataenvironment of a report, not a form. Tried getting your code to work but had no luck.
>>
>>in the command window
>>
>>select * from testtable into cursor mycursor
>>create report myreport from mycursor column
>>modi report myreport
>>
>>** now the report designer is up. is there automatically a dataenvironment associated with myreport? or must i add one? if i have to add one, what is the code?
>>
>>report5.dataenvironment.addobject("tempcursor", "cursor")
>>** "object report5 not found" is the error message
Previous
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