Rainer2000
IS-IT--Management
Hallo,
It sounds like a weird question, but I try it anyway.
I have horizontal calculations in a report using a conditional VB-Code in the detail section of the report. I thought it would be a terific idea to use an unbound field and all worked well until I came to vertically summing and grouping the unbound fields.
I have no idea how. Normally it is done by =Summe([Price]). But Grouping & Summing unbound fiels??
The VBA routine looks like this, and Text11 is an unbound field as I need the data only in the report.
Private Sub Detailbereich_Format(Cancel As Integer, FormatCount As Integer)
If Me.Text1 >= 25 Then Text11 = Text1 * 0.9
If Me.Text1 <= 4.5 Then Text11 = Text1 * 0.6
If Me.Text1 >= 5 And Me.Text1 <= 24.99 Then Text11 = Text1 * 0.8
End Sub
I may however be on a completely wrong track.!
Rainer
It sounds like a weird question, but I try it anyway.
I have horizontal calculations in a report using a conditional VB-Code in the detail section of the report. I thought it would be a terific idea to use an unbound field and all worked well until I came to vertically summing and grouping the unbound fields.
I have no idea how. Normally it is done by =Summe([Price]). But Grouping & Summing unbound fiels??
The VBA routine looks like this, and Text11 is an unbound field as I need the data only in the report.
Private Sub Detailbereich_Format(Cancel As Integer, FormatCount As Integer)
If Me.Text1 >= 25 Then Text11 = Text1 * 0.9
If Me.Text1 <= 4.5 Then Text11 = Text1 * 0.6
If Me.Text1 >= 5 And Me.Text1 <= 24.99 Then Text11 = Text1 * 0.8
End Sub
I may however be on a completely wrong track.!
Rainer