Try this. I was unable to convert it to my program but I'm not very good at
this stuff. I think it might be what your looking for.
http://www.lebans.com/monthcalendar.htm
Who knows if you get it to work you might be able to help me with where I'm
going wrong.
Chuck
Chuck-
What are you having trouble with? Did you create the clsMonthCal,
modCalendar, and modAddrOf modules in your project and copy the code into
them? You don't need the others, just those 3. There might be a better way
to get the modules into the project, but with access97, I couldn't find a
way.
I created a new project copied the modules in and added the necessary bits
of code and it works fine. Try it. I stripped it down to it's rawest form.
Once you understand that part, you can get the other bits to format it how
you want and everything.
'Get the 3 modules into the new file first.. however you can
Add a command button and a textbox
open the form code window and copy this in
--- code start --
Option Compare Database
Option Explicit
Private mc As clsMonthCal
Private Sub Command0_Click()
txtDate = ShowMonthCalendar(mc, Date, , , , True)
End Sub
Private Sub Form_Load()
Set mc = New clsMonthCal
End Sub
Private Sub Form_Unload(Cancel As Integer)
' This is required in case user Closes Form with the
' Calendar still open. It also handles when the
' user closes the application with the Calendar
' still open.
If Not mc Is Nothing Then
If mc.IsCalendar Then
Cancel = 1
Exit Sub
End If
Set mc = Nothing
End If
End Sub
-- End Code --
HTH
Matt
> Try this. I was unable to convert it to my program but I'm not very good at
> this stuff. I think it might be what your looking for.
[quoted text clipped - 17 lines]
> > TIA
> > Myron
Stephen Lebans - 02 Aug 2003 01:51 GMT
Matt it is easier to simply import any desired modules, tables, queries
etc..
From the Main database window right click over any blank area.
Select Import
Browse to the MDB containing the objects you wish to import
Select the desired objects
All done
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
> Chuck-
>
[quoted text clipped - 76 lines]
> > > TIA
> > > Myron