A
anil
hi all
I am using this functioin in my module
' looks the maximum/last date when the sampling schedule for
wastewater was generated
rst.Seek "=", DMax("Adate", "tbllog", "[sampletakenforID] = 2 ")
MsgBox "Latest Date found = '" & DMax("Adate", "tbllog",
"[sampletakenforID] = 2 ") & "' ." & vbCrLf & " " & vbCrLf & "You
already have generated the Sites for this Month."
If Month(Forms!frmww!SelectMonth) = Month(DMax("Adate", "tbllog",
"[sampletakenforID] = 2 ")) + 1 Then
' Confirms if user wants to generate the sampling schedule for next
month
now when i selects for january ,It gives message that select 13 in
month ( in form).
Can you please help so that i caould get month 1/2007 or january after
december.
thanks
anil
I am using this functioin in my module
' looks the maximum/last date when the sampling schedule for
wastewater was generated
rst.Seek "=", DMax("Adate", "tbllog", "[sampletakenforID] = 2 ")
MsgBox "Latest Date found = '" & DMax("Adate", "tbllog",
"[sampletakenforID] = 2 ") & "' ." & vbCrLf & " " & vbCrLf & "You
already have generated the Sites for this Month."
If Month(Forms!frmww!SelectMonth) = Month(DMax("Adate", "tbllog",
"[sampletakenforID] = 2 ")) + 1 Then
' Confirms if user wants to generate the sampling schedule for next
month
now when i selects for january ,It gives message that select 13 in
month ( in form).
Can you please help so that i caould get month 1/2007 or january after
december.
thanks
anil