G
Guest
I would like to disable a button depending on the
max "sdate" in the table "totals". So, if the table has
already been refreshed yesterday, I would like to disable
the button. I have written the code...
If Date - 1 = max(totals.SDATE) Then
Me![Command1].Enabled = False
Me![Command1].Visible = False
End If
But, i have problems with max(totals.sdate)
Thansk
max "sdate" in the table "totals". So, if the table has
already been refreshed yesterday, I would like to disable
the button. I have written the code...
If Date - 1 = max(totals.SDATE) Then
Me![Command1].Enabled = False
Me![Command1].Visible = False
End If
But, i have problems with max(totals.sdate)
Thansk