Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Start and End Date in DatePicker
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Start and End Date in DatePicker

 Post Reply Post Reply
Author
Message
vollweise View Drop Down
Groupie
Groupie


Joined: 25 February 2010
Location: Germany
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote vollweise Quote  Post ReplyReply Direct Link To This Post Topic: Start and End Date in DatePicker
    Posted: 01 April 2011 at 2:56am
How can I start date and end date
the date picker with VB or VBA query

Private Sub DatePicker2_SelectionChanged ()
MsgBox start date
MsgBox end date
End Sub
Michael Ricklefs
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2011 at 2:49pm
If you allow non-continuous selection then you will need to refine your query, each selection is know as a block.  Here is code assuming 1 continuous block:

Private Sub wndDatePicker_SelectionChanged()
    If wndDatePicker.Selection.BlocksCount = 1 Then
        Debug.Print wndDatePicker.Selection.Blocks(0).DateBegin
        Debug.Print wndDatePicker.Selection.Blocks(0).DateEnd
    End If
End Sub
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.