Hi, When i try to set calendar value, i got such error. the parameters
are: (cboDateComponent As ComboBox, ocxCalendar As Calendar)
Thank you. 5 5730
swingingming wrote: Hi, When i try to set calendar value, i got such error. the parameters are: (cboDateComponent As ComboBox, ocxCalendar As Calendar) Thank you.
Gee, I don't know... any idea what this mark on my arm is? You mean
you can't see it? Well, I can't see your code either. That would help
a lot.
Code:
Option Compare Database
Option Explicit
'Dim cboOriginator As ComboBox
Public Sub setDate(cboDateComponent As ComboBox, ocxCalendar As
Calendar, cboOriginator As ComboBox)
Set cboOriginator = cboDateComponent
ocxCalendar.Visible = True
ocxCalendar.SetFocus
If Not IsNull(cboDateComponent) Then
ocxCalendar = cboOriginator
Else
ocxCalendar = Date
End If
End Sub
The commented out line should be put into a Form module.
Thanks pi********@hotmail.com wrote: swingingming wrote: Hi, When i try to set calendar value, i got such error. the parameters are: (cboDateComponent As ComboBox, ocxCalendar As Calendar) Thank you.
Gee, I don't know... any idea what this mark on my arm is? You mean you can't see it? Well, I can't see your code either. That would help a lot.
swingingming wrote: Code: Option Compare Database Option Explicit 'Dim cboOriginator As ComboBox Public Sub setDate(cboDateComponent As ComboBox, ocxCalendar As Calendar, cboOriginator As ComboBox) Set cboOriginator = cboDateComponent ocxCalendar.Visible = True ocxCalendar.SetFocus If Not IsNull(cboDateComponent) Then ocxCalendar = cboOriginator Else ocxCalendar = Date End If End Sub
The commented out line should be put into a Form module. Thanks
ACK!!tiveX.. YECH! Use something like the Calendar in ADH (choose your
version). Works great and NO ActiveX controls to register. http://www.developershandbook.com/
I think the code is there. Splurge and buy the book. Well worth the
money.
Their code has a function that returns a date that you choose from a
calendar form. And it WORKS. (Without ActiveX controls =) )
<pi********@hotmail.com> wrote ACK!!tiveX.. YECH! Use something like the Calendar in ADH (choose your version). Works great and NO ActiveX controls to register. http://www.developershandbook.com/ I think the code is there. Splurge and buy the book. Well worth the money.
Their code has a function that returns a date that you choose from a calendar form. And it WORKS. (Without ActiveX controls =) )
Not to belittle the Access Developer's Handbook, because I have a copy of
every version and as Michka might say, "I'd rather slide down a giant razor
blade into a vat of iodine than give up any copy."
But MVP Arvin Meyer, at http://www.datastrat.com and MVP Stephen Lebans, at http://www.lebans.com both have free, downloadable calendars that use only
Access' built-in features and functions. They, too, work and do not require
an ActiveX.
Larry Linson
Microsoft Access MVP
Do you have a module called Calendar or ComboBox?
In case, you should fully describe the declarations:
'Dim cboOriginator As access.ComboBox
Public Sub setDate( _
cboDateComponent As access.ComboBox, _
ocxCalendar As ?????.Calendar, _
cboOriginator As Access.ComboBox)
(david)
"swingingming" <mi******@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com... Hi, When i try to set calendar value, i got such error. the parameters are: (cboDateComponent As ComboBox, ocxCalendar As Calendar) Thank you. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Wayno |
last post by:
My php logs are coming up empty. I have done all I can think of, and
all that made sense to me. Can someone take a look at my php.ini
please and tell me what you think may be the problem.
I...
|
by: Peter Frost |
last post by:
Please help
I don't know if this is possible but what I would really like to do is
to use On Error Goto to capture the code that is being executed when
an error occurs.
Any help would be much...
|
by: Anitha |
last post by:
Hi
I observed something while coding the other day:
if I declare a character array as char s, and try to use it as any
other character array..it works perfectly fine most of the times. It...
|
by: mudge |
last post by:
Hi,
I'm getting some very strange problems with some C# code. We're running
an ASP.NET application on a local server in a DMZ. If I access it using
the internal address, the application works...
|
by: Lysander |
last post by:
Thought I would give something back with a few articles. This article is a bit of code to add error handling. When I have time, I want to write articles on multilingual databases, and Access...
|
by: Dave |
last post by:
I'm having a hard time tying to build gcc 4.3.1 on Solaris using the GNU
compilers. I then decided to try to use Sun's compiler. The Sun Studio
12 compiler reports the following code, which is in...
|
by: =?Utf-8?B?UElFQkFMRA==?= |
last post by:
I'd really like to be able to constrain a generic type to System.Enum or,
better, enum. But of course that results in "Compiler Error CS0702".
So far I've been checking the type parameter at...
|
by: hyperpau |
last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding.
I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com).
Ergo, I...
|
by: Orestis Markou |
last post by:
On Tue, Oct 7, 2008 at 5:39 PM, Terry Reedy <tjreedy@udel.eduwrote:
The ast module is indeed very different from the compiler package, as
it depends on the exact grammar definition that the...
|
by: hyperpau |
last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding.
I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com).
Ergo, I...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |