Active X Monthview Control 6 (1 Viewer)

robertbwainwright

Registered User.
Local time
Today, 04:52
Joined
May 2, 2012
Messages
62
I'm using this control to allow users to select a date as input to a subform. The control is working just fine, but I have a problem, I need to reset the value to today on certain events (for instance a reset button to reset the values back to today). I have tried:

Me!calThru.Today

and

Me.calThru.Value = Date

and

calThru.Value = Date

but with no success. Any help would be greatly appreciated!
 

SOS

Registered Lunatic
Local time
Today, 02:52
Joined
Aug 27, 2008
Messages
3,517
What version of Access are you using? I tried it in Access 2007 and this worked:

Me.MonthView3.value = Date

(my control is named MonthView3)
 

robertbwainwright

Registered User.
Local time
Today, 04:52
Joined
May 2, 2012
Messages
62
I get runtime error 2763.


"MonthView returned the error: An error occurred in a call to the Windows MonthView control."

I'm using Access 2007 as well.
 

SOS

Registered Lunatic
Local time
Today, 02:52
Joined
Aug 27, 2008
Messages
3,517
Is your control visible when you try to set the value? It needs to be. I just got the same error if I set its visible property to NO.
 

robertbwainwright

Registered User.
Local time
Today, 04:52
Joined
May 2, 2012
Messages
62
Is your control visible when you try to set the value? It needs to be. I just got the same error if I set its visible property to NO.


Thanks a bunch! I made it not visible right above that code. This is the second time you have saved me!
 

Users who are viewing this thread

Top Bottom