One calendar instead of two?

  • Thread starter Thread starter Sandy
  • Start date Start date
S

Sandy

Hi,

Is it possible to use only one calendar rather than two as I have at the
moment?



Private Sub cmdCollected_Click()

ocxCalendarCollected.Visible = True



If Not IsNull(txtDateCollected) Then

ocxCalendarCollected.Value = txtDateCollected.Value

Else

ocxCalendarCollected = Date

End If

End Sub



Private Sub cmdReady_Click()

ocxCalendarReady.Visible = True



If Not IsNull(txtDateReady) Then

ocxCalendarReady.Value = txtDateReady.Value

Else

ocxCalendarReady = Date

End If



End Sub



Private Sub ocxCalendarCollected_Click()

txtDateCollected.Value = ocxCalendarCollected.Value

chkJobComplete.SetFocus

ocxCalendarCollected.Visible = False

cmdCollected.Visible = False

End Sub



Private Sub ocxCalendarReady_Click()

txtDateReady.Value = ocxCalendarReady.Value

chkJobComplete.SetFocus

ocxCalendarReady.Visible = False

cmdReady.Visible = False

End Sub



Thanks

Sandy
 
I like using Access MVP Allen Browne's calendar form in my applications.
There are no nasty ActiveX problems similar to what you may have (or will, in
the future) experience using the built-in calendar control. You simply import
one form and one module into your database. You can then call this calendar
form from multiple forms and/or multiple fields for a single form.

Popup Calendar
http://allenbrowne.com/ser-51.html


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
 
Thanks Tom I'll have a look at that.

Sandy

Tom Wickerath said:
I like using Access MVP Allen Browne's calendar form in my applications.
There are no nasty ActiveX problems similar to what you may have (or will,
in
the future) experience using the built-in calendar control. You simply
import
one form and one module into your database. You can then call this
calendar
form from multiple forms and/or multiple fields for a single form.

Popup Calendar
http://allenbrowne.com/ser-51.html


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
 
dans l'article (e-mail address removed), Tom
Wickerath à AOS168b AT comcast DOT net a écrit le 21/01/08 18:16 :
 
Back
Top