Not quite sure what you mean by fourth row but here goes
Private Sub btnshod_Click()
Dim di
For di = 1 To 27
if di = 4 then
blah blah blah
else
Me!d & (di + 5) &.Caption = Left(Date + di, 2)
end if
Next di
End Sub
If this is not what you want can you explain it more.
Heh, Savil, I meant that the 4th row gives an error and has to be handled differently
But I found it, I should use this
Me("d" & di + 5).Caption = Left(Date + di, 2)
instead of
Me!d & (di + 5) &.Caption = Left(Date + di, 2)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.