i dont see any calander control, can you please let me know where and which is the ocx i should be using or including it in the refrence.
Main Topics
Browse All TopicsI need to popup the calander when the user clicks a text box or a combobox. The user will select the date from the calander which will be the input for my query.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The line in my answer code that reads:
Calendar1.Move X, Y
is what positions the calendar. If you don't like the position, either place it where you always want it to be and delete that line of code, or play with offsets such as:
Calendar1.Move X + 1200, Y -600
Or if you want it positioned relative to the textbox, play with it like this:
Calendar1.Move Text1.Left, Text1.Top 'puts it right over the text box
or
Calendar1.Move Text1.Left + 600, Text1.Top -600 'play with the numbers until it appears where you want it.
Business Accounts
Answer for Membership
by: VBClassicGuyPosted on 2009-09-09 at 09:54:00ID: 25293180
Just make the calendar invisible. Then use this:
Private Sub Text1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Calendar1.Move X, Y
Calendar1.Visible = True
End Sub
Private Sub Calendar1_Click()
Dim TheDate as String
TheDate = Format$(CDate(Calendar1.Va lue), "mm-dd-yyyy")
Calendar1.Visible = False
Text1.Text = TheDate
End Sub