how could I 'process' values in an Access report dynamically?
What I have is a report with "Date" as a column (and hence a textbox txtDate whose data source is linked to the corresponding field in the DB Table). What I want is for each week to have a title 'Week commencing....'. I attempted to do something like the following-
Unfortunately,
is NOT allowed (error saying it doesn't have a value).
Any ideas??
What I have is a report with "Date" as a column (and hence a textbox txtDate whose data source is linked to the corresponding field in the DB Table). What I want is for each week to have a title 'Week commencing....'. I attempted to do something like the following-
Code:
Private Sub Report_Open(Cancel As Integer)
Dim today As Integer
today = 9
If Weekday(txtDate.Value) < today Then
txtWeekTitle.Caption = "Week commencing " & txtDate.Value
End If
today = txtEnterDate.Value
End Sub
Code:
txtDate.Value
Any ideas??