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!

C000005 error from MonthView control

Status
Not open for further replies.

SnyAc

Programmer
Jul 25, 2001
272
US
I'm trying to get the selected date value from the MonthView control and get a C000005 error whenever I use the keypress event to try to store the value of the control in a public variable....

Any ideas?

Andy Snyder
SnyAc Software Services
 
>I'm trying to get the selected date value from the MonthView control and get a C000005 error whenever I use the keypress event to try to store the value of the control in a public variable....

Not sure what you're tyring to do in the Keypress event, but you shouldn't need to do anything there. The current value of the MonthView control is available in two ways. You can get it as a datetime value using oleMonthView.Object._Value (note the underscore in _Value), or you get individual month, day, and year as oleMonthView.Object.Month, oleMonthView.Object.Day, and oleMonthView.Object.Year.

-Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top