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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataReport - Group Footer Problem

Status
Not open for further replies.

PeterWallace

Programmer
Apr 28, 2003
210
0
0
AU
Using Msdatashape I can extract Data I need to Genrate a Non DataEnvironment report

At This point the Receipts and Disbursments have all been
calculated and The Carried Forward Figure Generated under Field Bfwd

The Ledger needs to Show

Group Header
acc no 1234 ABLE BAKER BFWD 123.45

Detail
eggs 10.00
Bacon 20.00
Butter -20.00

Group Footer
PLUS 10.00

Carried Fwd 133.45

SqlParent = "SELECT Lno,..., Bfwd, Cfwd from AccountTable order by ....etc"

SqlChild = "SELECT Lno, ... , Amount , etc Order By Etc "



This is A Ledger

Group By Account No

I can Place Bfwd Balance in Group Header TextBox

I can Place Each Amount I Detail Line TextBox

I can use rptFuncSum to Total Amount and Show In Group Footer

As is Group Footer I can Not get Cfwd figure into A TextBox

BUT I can Not Get ANything else ...Lablel etc to Show Value either


WITH RptEomLedger.Sections("Section7").controls
.item(1).DataMember="Child"
.item(1).DataField="Amount"
.item(1).FunctionType=RptFuncSum
' above gives what want

'.item.("LblCfwd").caption = rs.fields(7).Value
' this gives error message
' Have Tried formatted ...
' Tried field Cfwd to string
' ... Put Cfwd in Child

'.item.("LblCfwd").caption = rs.fields(7).Value
' this gives error message

'.item.("LblCfwd").caption = rs.fields(7).Name
' this at Least fills the label ...with the FieldName

There Must Be a way Of getting the cfwd figure into the group footer ...........!!!!!!!!!

Can Anyone advise

Peter



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top