ActiveX calendar from Windows NT to XP

  • Thread starter Thread starter Eowyn
  • Start date Start date
E

Eowyn

I have a form that was created while using Windows NT.
Now we've upgraded to Windows XP, but there seems to be a
problem with the calendar in the form when trying to use
it in Windows XP.

The calendar in the form seems to have been created as an
ActiveX control. (No - I don't know anything about
activeX - I wasn't the one to make the form..)

It's a monthly calendar where you press what day of the
month you want to record, and then access uses this date
when adding data to the database.

What it says in the ActiveX Control properties when I
right-click it and get the properties is:

OLE-class: Calendar
Class: MSCAL.Calendar.7
Active:Yes

I'm guessing that MSCAL is some calender program that was
part of Windows NT but not Windows XP? Is there an
equivalent for XP so that I can just give it the correct
name?


Just in case it helps, when I open the form I get an
errormessage saying "There is no object in this control."
I click OK and it goes on saying: Runtime error 2447:
Illegal use of period (.), exclamation sign (!) or
paranthesis. You might have defined a non-valid
identifier or written paranthesis after the constant Null.

I then press "error search"

Which marks the following line in a class module yellow:

Calendar.Value = Date.Value

The whole code here is:

Private Sub Form_Load()
Calendar.Value = Date.Value
End Sub

Thanks for any hints you can give me.

-E
 
This is often why many access developers avoid the use of ActiveX controls.

However, you might want to check your office install. The calendar is not
installed by default, and thus if you re-install ms-access,a and check off
the "calendar" activeX, then all might be well.

The other solution is dump the use of the activeX calendar,and use something
else.
 
Back
Top