ByronJohnson
MIS
Hey all,
I am sure this is easy for most
but I am stuck
I want to create a cmd button on a form that prints a certain report based on the date and if it is a Monday
this is what I have for code
If Date = (mm / 1 / yyyy) Then
DoCmd.OpenReport "1stoftheMonthReport(andNotaMonday)"
Else
DoCmd.OpenReport "ItemstoCheckReport(1stoftheMonthandaMonday)"
Rem DoCmd.OpenReport "DailyReport(NotaMondayandNotthe1stoftheMonth)"
End If
End Sub
Not sure what I should put in the date line for the system to auto populate the month and year part of the date.
Any suggestions would be great
thx,
Byron
I am sure this is easy for most
but I am stuck
I want to create a cmd button on a form that prints a certain report based on the date and if it is a Monday
this is what I have for code
If Date = (mm / 1 / yyyy) Then
DoCmd.OpenReport "1stoftheMonthReport(andNotaMonday)"
Else
DoCmd.OpenReport "ItemstoCheckReport(1stoftheMonthandaMonday)"
Rem DoCmd.OpenReport "DailyReport(NotaMondayandNotthe1stoftheMonth)"
End If
End Sub
Not sure what I should put in the date line for the system to auto populate the month and year part of the date.
Any suggestions would be great
thx,
Byron