?
Solved

Coding for Calendar control in VB 6

Posted on 2004-08-30
3
Medium Priority
?
179 Views
Last Modified: 2010-05-02
I have a form name frmReport it has a text field named txtDate. It also has a button that, when clicked, opens a form called frmDate. frmDate has the MS calendar control 8.0 component on it. What I would like to do is when a user opens frmDate and clicks on a particular date, frmDate will close and the selected date will appear in txtDate on frmReport. How can I do this. Thanks.
0
Comment
Question by:Mike Miller
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
DarkoLord earned 2000 total points
ID: 11934484
Hi... Put this on frmDate:

Private Sub Calendar1_Click()
     frmReport.txtDate = CStr(Calendar1.Value)
     Unload Me
End Sub

Darko
0
 

Author Comment

by:Mike Miller
ID: 11934524
You're awesome...Thanks!!!
0
 
LVL 22

Expert Comment

by:DarkoLord
ID: 11934547
You're welcome
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question