I
ItsBarbara
In attempting to lock fields after a specified date, I am using a solution
proposed by Klatuu that seemed to work:
Dim dtmCutOff30 As Date
Dim dtmCutOff33 As Date
Dim dtmCutOff36 As Date
dtmCutOff30 = DateSerial(Year(date), 4, 3)
dtmCutOff33 = DateSerial(Year(date), 4, 24)
dtmCutOff36 = DateSerial(Year(date), 5, 15)
Me.Week30.Locked = Date() > dtmCutOff30
Me.Week33.Locked = Date() > dtmCutOff33
Me.Week36.Locked = Date() > dtmCutOff36
When I try to open the form, I am getting the following error:
Compile Error:
Method or data member not found
and the .Locked= following Me.Week30 is highlighted.
Also, it changed the Date() to Date
I
What am I doing wrong??
Background: Teachers are entering scores during Week 30. These scores need
to be locked so that they cannot be changed after a specific date....
Then they will enter scores again during Week 33. These too, must be locked
after the specified date.
Same for week 36
proposed by Klatuu that seemed to work:
Dim dtmCutOff30 As Date
Dim dtmCutOff33 As Date
Dim dtmCutOff36 As Date
dtmCutOff30 = DateSerial(Year(date), 4, 3)
dtmCutOff33 = DateSerial(Year(date), 4, 24)
dtmCutOff36 = DateSerial(Year(date), 5, 15)
Me.Week30.Locked = Date() > dtmCutOff30
Me.Week33.Locked = Date() > dtmCutOff33
Me.Week36.Locked = Date() > dtmCutOff36
When I try to open the form, I am getting the following error:
Compile Error:
Method or data member not found
and the .Locked= following Me.Week30 is highlighted.
Also, it changed the Date() to Date
I
What am I doing wrong??
Background: Teachers are entering scores during Week 30. These scores need
to be locked so that they cannot be changed after a specific date....
Then they will enter scores again during Week 33. These too, must be locked
after the specified date.
Same for week 36