By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,968 Members | 1,458 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,968 IT Pros & Developers. It's quick & easy.

Pass Calendar Value into subform?

P: n/a
How to pass a MS Calendar Control Calendar Value into a subform within
the main form?

Private Sub MyCalendar_AfterUpdate()

Forms![MainForm].[Subform].[DateField] = MyCalendar.Value

End Sub

This does not seem to work? Please advice.

PC
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Perry,
I think that you're missing the "Form" reference...

Try :
Forms![MainForm].[Subform].Form![DateField] = MyCalendar.Value
or even:
Me![Subform].Form![DateField]

PerryC <pe******@yahoo.com> wrote in message
news:ea**************************@posting.google.c om...
How to pass a MS Calendar Control Calendar Value into a subform within
the main form?

Private Sub MyCalendar_AfterUpdate()

Forms![MainForm].[Subform].[DateField] = MyCalendar.Value

End Sub

This does not seem to work? Please advice.

PC

Nov 13 '05 #2

P: n/a
Yes... you are absolutely right. I did that after a day of struggle...
not a programmer. Thanks.
Sincerely,
PC
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.