I know I should know how to make this work, but it continues to allude me. How do I use an ActiveX control DTPicker to chose a date then use the values to query for a report. I would like to assign it also to an unbound text box.
Set the DTPicker to the current system date when the form opens: Private Sub Form_Load()
Dim varDate
varDate = Date
Me!ActiveXCtl0.Value = varDate
End Sub
Update the text box to the selected date in theDTPicker : Private Sub ActiveXCtl0_Change()
Me!TheTextBoxName = Me!ActiveXCtl0.Value
End Sub
Obviously, change ActiveXCtl0 to your DTPicker control name and TheTextBoxName to your text box or control name.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.