Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening balance

Status
Not open for further replies.

7007

Technical User
Mar 5, 2001
16
ZA
with parrameters selecting a certain period, for stock to apear. how do I create an opening balance for stock?
what formula should be used?
 
hi
can u give more detail on what you want to do.
what version of crystal
formula, database table field etc.
this would help alot

cheers

pgtek
 
I'm not quite sure what you're asking, but I hope this will
help point you in the right direction.

You can create a beginning balance for a formula in the group header.

whileprintingrecords;
shared currencyvar openbal;
openbal := {databasetable.fieldname1}

Then print the begin balance in the group header.
whileprintingrecords;
shared currencyvar openbal;
openbal

Then add to it in the detail.

whileprintingrecords;
shared currencyvar totalbal;
shared currencyvar openbal;
totalbal := openbal + {databasetable.fieldname2}

Then print the end balance in the footer.

whileprintingrecords;
shared currencyvar totalbal;
totalbal

Then reset the end balance after you print it.
whileprintingrecords;
shared currencyvar totalbal := 0



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top