Stephen,
The issue is that the method your calendar uses to store and retrieve
properties wont work in an adp. I have done some delving and come up with
the following code samples which provide the same functionality in an adp.
Unfortunately my first attempt to integrate this code into your calendar was
disastrous. The calendar only appeared as a couple of small blue bars on
the screen and my session effectively hung. Anyway I will try this again
tomorrow.
Public Sub setAccessProperty(PrpName As String, PrpValue As String)
Application.CurrentProject.Properties.Add _
PrpName, PrpValue
End Sub
Public Function getAccessProperty(PrpName As String) As String
Dim strConn As String
Dim prp As AccessObjectProperty
For Each prp In Application.CurrentProject.Properties
If prp.Name = PrpName Then
getAccessProperty = prp.Value
Exit For
End If
Next prp
End Function
"Andrew Chanter" <he****@radsolutions.com.au> wrote in message
news:Ud******************@news-server.bigpond.net.au...
Thanks Stephen. I am using version 2.01
"Stephen Lebans" <Fo****************************************@linval id.com>
wrote in message news:Rl**********************@ursa-nb00s0.nbnet.nb.ca... The MonthCalendar class exposes a WindowLocation property. THis can be
set before the ShowMonthCalendar function is called or once the Calendar
is opened, via the Properties->Calendar Location menu.
Are you using the latest version? The class has error checking to ensure
the Calendar does not popup off screen.
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Andrew Chanter" <he****@radsolutions.com.au> wrote in message
news:af*****************@news-server.bigpond.net.au... I recently installed Stephan Lebans calendar control into an
application. Only problem is that it always launches at the extreme right of the
screen with most of the dialog off screen. I am activating it with a command
button next to the field I want to update. Dont know if this is the
issue. Any clues??