I have created a report that is a template report (a basic list)
I have done this so i can call the report from various places without creating lots of similar reports.
when i want to use it i pass the query, column names and ordering to the report and in the 'on open' event i assign the recordsource and column names etc to the various field names
My On Open Code:
Buffer = Split(OpenArgs, "|")
'##### QUERY #####
Me.RecordSource = Buffer(0)
'##### TITLE #####
Me.lblTitle.Caption = Buffer(1)
Me.Caption = Buffer(2)
'##### ORDERING #####
Me.OrderByOn = True
Me.OrderBy = Buffer(3)
Me.lblOrdering.Caption = Buffer(4)
'##### FILTERS #####
Me.lblFilters.Caption = Buffer(5)
'##### HEADINGS #####
Me.lblCustom1.Caption = Buffer(6)
Me.lblCustom2.Caption = Buffer(7)
Me.lblCustom3.Caption = Buffer(8)
Me.lblCustom4.Caption = Buffer(9)
Me.lblCustom5.Caption = Buffer(10)
Me.lblCustom6.Caption = Buffer(11)
DoCmd.Maximize
I want to be able to have a total at the end of each column which totals each column IF its a numeric value (because you cannot sum a text field)
Any ideas how i could achieve this?
I have done this so i can call the report from various places without creating lots of similar reports.
when i want to use it i pass the query, column names and ordering to the report and in the 'on open' event i assign the recordsource and column names etc to the various field names
My On Open Code:
Buffer = Split(OpenArgs, "|")
'##### QUERY #####
Me.RecordSource = Buffer(0)
'##### TITLE #####
Me.lblTitle.Caption = Buffer(1)
Me.Caption = Buffer(2)
'##### ORDERING #####
Me.OrderByOn = True
Me.OrderBy = Buffer(3)
Me.lblOrdering.Caption = Buffer(4)
'##### FILTERS #####
Me.lblFilters.Caption = Buffer(5)
'##### HEADINGS #####
Me.lblCustom1.Caption = Buffer(6)
Me.lblCustom2.Caption = Buffer(7)
Me.lblCustom3.Caption = Buffer(8)
Me.lblCustom4.Caption = Buffer(9)
Me.lblCustom5.Caption = Buffer(10)
Me.lblCustom6.Caption = Buffer(11)
DoCmd.Maximize
I want to be able to have a total at the end of each column which totals each column IF its a numeric value (because you cannot sum a text field)
Any ideas how i could achieve this?