Hi,
Hopefully someone can help me here, I have created a report which has objects that use expressions as shown below to calculate volumes:
=DCount("*","qryDDMandateHistoryDGI_DailyCount","[strLetterCode]Like ""ADDB""")
What I now want to do is to assign that value to a field in seperate table.
I have created an array in the report on load event as follows:
Dim Stats(2) As String
Stats(0) = Format(Now(), "dd/mm/yy")
Stats(1) = "ADDB"
Stats(2) = DCount("*", "qryDDMandateHistoryDGI_DailyCount", "[strLetterCode]Like ""ADDB""")
Dim Stats0 As Date
Dim Stats1 As String
Dim Stats2 As Integer
Stats0 = Stats(0)
Stats1 = Stats(1)
Stats2 = Stats(2)
I want to assign the values of Stats0, Stats1 and Stats2 to fields in a new table, those fields being
DtmDate for Stats0
txtLetterType for Stats1
lngVolume for Stats2
The table is called tblStatistics
If anyone can tell me how I can do this, I would be most grateful
John
Hopefully someone can help me here, I have created a report which has objects that use expressions as shown below to calculate volumes:
=DCount("*","qryDDMandateHistoryDGI_DailyCount","[strLetterCode]Like ""ADDB""")
What I now want to do is to assign that value to a field in seperate table.
I have created an array in the report on load event as follows:
Dim Stats(2) As String
Stats(0) = Format(Now(), "dd/mm/yy")
Stats(1) = "ADDB"
Stats(2) = DCount("*", "qryDDMandateHistoryDGI_DailyCount", "[strLetterCode]Like ""ADDB""")
Dim Stats0 As Date
Dim Stats1 As String
Dim Stats2 As Integer
Stats0 = Stats(0)
Stats1 = Stats(1)
Stats2 = Stats(2)
I want to assign the values of Stats0, Stats1 and Stats2 to fields in a new table, those fields being
DtmDate for Stats0
txtLetterType for Stats1
lngVolume for Stats2
The table is called tblStatistics
If anyone can tell me how I can do this, I would be most grateful
John