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

Monthview Value Problem

Status
Not open for further replies.

lldevel

Programmer
Nov 11, 2001
17
0
0
US
Hello,

I am having a problem setting the default value for a monthview control. I want to set the default date so when the use clicks on the monthview button to pick a date, it defaults to a date in another control, but I get an active x error when setting the .value property of the MonthView control. Anyone have any experience with this?

Thanks,

LLDevel
 
LLDevel,
Make sure you include Object before Value. Assume the MonthControl is Olecontrol1,
Code:
ThisForm.olecontrol1.Object.Value = ;
     ThisForm.othercontrol.value
ThisForm.olecontrol1.refresh()

Rick
 
Hi Rgbean,

Thanks for the tip. What I also found is that you can only set that value (for the MonthView OCX control anyway) on a Form's Load event. It wasn't working on the Open, or Activate events. Anyway, it's working great now - thanks.

LLDevel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top