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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX Calendar Control not populating TextBox 2

Status
Not open for further replies.

bajo71

Programmer
Aug 6, 2007
135
US
Hello,

I am attempting to populate a textbox with the value from ActiveX Calendar control. THe following works to set the control's visible property = true

Private Sub txtBeginDt_GotFocus()
CalendarBegin.Visible = True
End Sub

however, when I try to set the value using...
Private Sub CalendarBegin_Click()
txtBeginDt.Value = CalendarBegin.Value
End Sub

I get an error message Access can't find the control.

How then was I able to set the Visible property?

Thanks
 
I found it! I had the control source property set to the textbox, which is what i read in a tutorial. Once I removed this, the textbox populates perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top