Jack Skelley wrote:
Good Evening:
At wits end on this one...
I have a prg where I create a cursor to populate a report. Works fine from the 
prg.
I then take that same code and copy it to a method in a form and the when the 
report runs from the form I get a variable not found error. That variable that 
is not found was used in the same cursor name for a previous report. After the 
report runs in the first report the cursor is closed.
The report that errors has never had that variable in it. The other report that 
has the variable not found in the second report runs fine. I have looked for 
the variable in the frx and it does not exist.
Even when I create the variable on the second report it still reports variable 
not found.
What am I missing? Even when I create a new report with 1 field from the cursor 
on it the error is the same.
Is there some clandestine dataenvironment on the form?

I would suspend the program just at the point before REPORT FORMAT.... command and check your environment here. If you are on the cursor as expected just MODI REPO <myrep> and try a print preview, which should then show the error. You can use the debugger to check values. If all else fails you could change the cursor name of the report and see what happens. This would be a good test to make sure you are running the right code as well.

Could you post the code here?


HTH

Peter

----------------------------------------------------------------



Rajan Imports has changed - we are now Whispering Smith Ltd.  For more 
information see our website at www.whisperingsmith.com


Please update your address book with my new email address: 
[email protected]

.

This communication is intended for the person or organisation to whom it is addressed. The contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you have received this message in error, please notify us immediately by telephone or email.

www.whisperingsmith.com

Whispering Smith Ltd
Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700 
Fax:0161 831 3715
London Office:17-19 Foley Street, London  W1W 6DW Tel:0207 299 7960


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to