Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to capture date from Calender Contorl 6.0

Status
Not open for further replies.

ragu111

MIS
Aug 15, 2002
129
AE
on a form i have a date field and comand button. on comand click i have another form pop-ups with calender control 6.0. by clicking the date i need to input the date value on forms date field.

can someone help me how to capture the date?

Ragu-
 
Example:

Main form = frmMain
Date Field = dteDate
Command Button = cmdDate

PopUp Date Form = frmCalendar
Active X Calendar = acxCalendar


private sub acxCalendar_DateClick()
forms!frmMain!dteDate.Value = acxCalendar.Value
docmd.Close acForm, "frmCalendar"
End Sub

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top