View Full Version : Access 2000 Date Time Picker errors withTab Control where Page Index > 1


Benji
05-30-2001, 09:41 AM
Hello all and thanks in advance for any ideas/answers you can provide. I have verified this on 2 different computers both running Access 2000 and different operating systems.

BACKGROUND: I am very familiar with the date time picker and use it often. I am working on a project where it is necessary to put the date time picker on a tab page.

- If I put the d/t picker on the first tab page (tab index = 0) and send a date value, it works fine.

- If I put the d/t picker on any of the following tabs (tab index > 0) and send a date value I get run time error 2763: "DTPicker returned the error: An error occured in the call to the Windows Date and Time Picker control.."

This seems very odd, but is easy to reproduce, just create a form add a 2 page tab control, put a d/t picker object on page both pages of the tab control & send both a value "01/01/99" (or anything) in the OnLoad event of the form.

The d/t picker on the first page will get it's value the 2nd should give you this error.

Again, thanks for any assistance you can offer!

DES
05-30-2001, 10:18 AM
Try putting the d/t picker on a form. Then put that form on the tab one. Repeat the process for the second tab. A sub form for each tab in the tab control. This seems to solve most problems such as you are describing.

Benji
05-30-2001, 10:44 AM
DES - Thanks.

That is a good work-around! I just tested and it does seem to work.

Seems like a silly bug that Microsoft would have encountered and corrected by now. I looked all over their site & could find no reference.