B
Beto1967 via AccessMonster.com
Hi
I found this coding in the web that produces a Calendar ..(Perfect) What I
need help with.. Since the boxes are unbound how can I save the data that is
inserted for the partculiar days of the Calendar for historical purposes or
generate a reports and be in a calendar format ?(E.G. What was done on
certain days ) Enclosed is the Code
TIA
Private Sub form_open(Cancel As Integer)
Me![FIRSTDATE] = Date
Call filldates
Dim selday As Integer, DateSelected As Variant
End Sub
Private Function filldates()
Dim curday As Variant, curbox As Integer
curday = DateSerial(Year(Me![FIRSTDATE]), Month(Me![FIRSTDATE]), 1) 'first
day of month
curday = DateAdd("d", 1 - Weekday(curday), curday) 'back to sunday
For curbox = 0 To 41 'need to loop thru 42 textboxes
Me("D" & curbox) = Day(curday)
Me("D" & curbox).Visible = False
If Month(curday) = Month(Me!FIRSTDATE) Then Me("D" & curbox).Visible = True
curday = curday + 1 'nextday
Next curbox
End Function
I found this coding in the web that produces a Calendar ..(Perfect) What I
need help with.. Since the boxes are unbound how can I save the data that is
inserted for the partculiar days of the Calendar for historical purposes or
generate a reports and be in a calendar format ?(E.G. What was done on
certain days ) Enclosed is the Code
TIA
Private Sub form_open(Cancel As Integer)
Me![FIRSTDATE] = Date
Call filldates
Dim selday As Integer, DateSelected As Variant
End Sub
Private Function filldates()
Dim curday As Variant, curbox As Integer
curday = DateSerial(Year(Me![FIRSTDATE]), Month(Me![FIRSTDATE]), 1) 'first
day of month
curday = DateAdd("d", 1 - Weekday(curday), curday) 'back to sunday
For curbox = 0 To 41 'need to loop thru 42 textboxes
Me("D" & curbox) = Day(curday)
Me("D" & curbox).Visible = False
If Month(curday) = Month(Me!FIRSTDATE) Then Me("D" & curbox).Visible = True
curday = curday + 1 'nextday
Next curbox
End Function