I have a class that consists of a text box and the ole calendar control. The calendar control is set to visible = .F. The keypress method of the text box contains code to mimic the calendar control, ie., page up goes to the previous month, page down to the next month, right arrow to the next day, left arrow to the previous day, up arrow to the previous week and down arrow to the next week. If the user presses the spacebar, the calendar's visible property is set to .T. and it appears to drop down (mimicking the combo box behavior). Pressing enter closes the calendar (sets visible property to .F. and focus to the text box).
The control works fine in a form, where I set the controlsource of the text box to the desired table/view field. I am now trying to use this control in a grid column. The calendar drops down when the space bar is pressed, but no date appears in the text box.
I have tried all sorts of combinations of controlsource, currentcontrol, bound, sparse, etc. with no luck. Anybody have any ideas why the date doesn't appear in the text box when the control is in a grid column? Any thoughts are appreciated.
mbru
The control works fine in a form, where I set the controlsource of the text box to the desired table/view field. I am now trying to use this control in a grid column. The calendar drops down when the space bar is pressed, but no date appears in the text box.
I have tried all sorts of combinations of controlsource, currentcontrol, bound, sparse, etc. with no luck. Anybody have any ideas why the date doesn't appear in the text box when the control is in a grid column? Any thoughts are appreciated.
mbru