Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report not printing correctly
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Report not printing correctly
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01291514
Message ID:
01291514
Views:
53
I am generating a report by using a cursor and one of the fields is an expression field called sugamt. When I print the report, I am getting "***" instead of the calculated value. Here is the query that calculates the field called sugamt by using the IIF() command:
			SELECT Products.p_productname, Products.p_itemcode,;
				  Products.p_unitsinstock, Products.p_unitsonorder,;
				  Products.p_totqtyperunit, Products.p_qtyperunit, Products.p_max,;
				  Products.p_min,;
			      IIF(Products.p_unitsinstock<=Products.p_min AND Products.p_unitsinstock > 0,Products.p_max-Products.p_min,0) as sugamt;
				 FROM ;
				     warehouse!products;
				 WHERE  Products.p_itemcode BETWEEN ?lc_bitem AND ?lc_eitem;
				 ORDER BY Products.p_productname INTO CURSOR prodrep
it seem like the "Products.p_max-Products.p_min" is generating "***" on the report and not showing the calcluation. Anyone knows what is going here? Thanks

Nick
Next
Reply
Map
View

Click here to load this message in the networking platform