Solved

Coding for Calendar control in VB 6

Posted on 2004-08-30
3
168 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:mwmiller78
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
DarkoLord earned 500 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:mwmiller78
ID: 11934524
You're awesome...Thanks!!!
0
 
LVL 22

Expert Comment

by:DarkoLord
ID: 11934547
You're welcome
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now