I have attempted to create a module, 1st time trying. i have done a lot of searching but i guess the light has turned on as to what I am doing.
I want to check the date to see if it is a weekend and push the date to Monday. So here is the get and set (i used a book to help me along).
Would this be the Set/Get code on the form:
Not sure how to "SET" and "GET" the variable from the module.
Please don't bash me on naming conventions, I will fix that once the code is finalized.
I want to check the date to see if it is a weekend and push the date to Monday. So here is the get and set (i used a book to help me along).
Code:
Private DateValidation As Date
Public Property Get dateCheck() As Date
dateCheck = DateValidation
End Property
Public Property Set dateCheck(ByVal sDate As Date)
sDate = WeekdayName(Weekday(Me.Claim_Received, vbUseSystemDayOfWeek), _
False, vbUseSystemDayOfWeek)
Select Case sDate
Case Is = "Saturday"
sDate = (sDate + 2)
Case Is = "Sunday"
sDate = (sDate + 1)
End Select
DateValidation = sDate
End Property
Would this be the Set/Get code on the form:
Code:
Set dateCheck = Me.ClaimReceived
Me.ClaimReceived = dateChecked
Not sure how to "SET" and "GET" the variable from the module.
Please don't bash me on naming conventions, I will fix that once the code is finalized.
Last edited: