Hi Pete,
You have chosen wisely; Sensei Leban's
Calendar is very slick. I think I can help on this one.
Here's a past post of mine which gives step-by step instructions.
Please try this on a BACK-UP COPY of your database first!
In your database:
1. Import the five modules (File-->Get External Data--
Import) from the Access 2000 demo database into your
database.
2. Immediately compile your database befoer doing anything else! If it
doesn't
compile, Stephen will have to help with that one.
3. Now in your database open the form in design view. Go
to the code window behind the form. In the Declarations
area (very top) you need to add one line of code. So the
very first three lines of your code window will look like
this:
Option Compare Database
Option Explicit
Private mc As clsMonthCal
4. Now go the Form's Load event and enter this one line of
code:
Set mc = New clsMonthCal
5. Now go to the Form's Unload event and enter the
following code:
If Not mc Is Nothing Then
If mc.IsCalendar Then
Cancel = 1
Exit Sub
End If
Set mc = Nothing
End If
6. Now find the CONTROL on the form that you wish to have
the calendar fill the date. Right Click on the control and
go to Properties from the list. On the "All" or "Event"
tab you should see an option that says "On Dbl Click". Hit
the little (...) button and it will take you to the code
window again. We need to add one line of code like this:
Me.txtDate=ShowMonthCalendar(mc,Nz(Me.txtDate, 1),,False)
In my example the contol name was txtDate. Change that
part to whatever you have named your control.
7. Compile the code and save the form.
8. Now open the form in regular view and double-click that
control. The calendar should then appear.
I think I got all the steps correct.
Hope that helps,
Jeff Conrad
Access Junkie
Bend, Oregon
Pete Merenda said:
I've downloaded the Lebans calendar, but do not know how to "integrate" it
into my Db. I get by in Access by using Expression/Macro Builders, but I
know very little of VB programming.
My logic has been to: 1) copy the Lebans modules and fields to my Db, 2)
search the VB code for references to form and table names in the Lebans Db,
and 3) rename them. I continue to get "Ambiguous name" errors.