Wanted to share a solution to something which I didn't find on the net:
EVERY form in my Microsoft Access 2002 database gave an error any time any
code was to be called: form OnOpen, button OnClick, etc.
Error was: <b>The expression On Open you entered as the event property
setting produced the following error: Expecteed: end of statement.</b> [Where
"On Open" could be replaced by "On Click", etc]
The problem ultimately was the letter "s" had gotten at the beginning of my
module code so that it read: <b>sOption Compare Database</b>...
Deleting the "s" fixed it! :)
Happy coding,
Aaron 7 2566
Sorry, thought <b> would work...don't see how to edit the post...if an admin
wants to delete those to make it more readable it would be fine.
A
Aaron G via AccessMonster.c om wrote: Sorry, thought <b> would work...don't see how to edit the post...if an admin wants to delete those to make it more readable it would be fine.
Nope - AM sends your posts to usenet where plain text is traditional.
You'd have to couple the "<b>" with a "</b>", ie, html stuff. 8)
Thanks for the info on how the option compare statement can mess things
up if incorrectly entered! It's one of those things the intellisense
doesn't pick up as an error, I guess.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
I just pasted this in access97
sOption Compare Database
and the line turned red indicating an error
and 'compiling' the module gave me the same error you got
sounds like good solutions to me
Tim Marshall <TI****@PurpleP andaChasers.Moe rtherium> wrote in
news:dc******** **@coranto.ucs. mun.ca: Thanks for the info on how the option compare statement can mess things up if incorrectly entered! It's one of those things the intellisense doesn't pick up as an error, I guess.
Excuse, but don't you all regularly compile your modules? And your
databases as a whole? That would clearly throw an error as soon as
you tried to compile a module with such invalid code in it.
--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
David W. Fenton wrote: Tim Marshall <TI****@PurpleP andaChasers.Moe rtherium> wrote in
Excuse, but don't you all regularly compile your modules? And your databases as a whole? That would clearly throw an error as soon as you tried to compile a module with such invalid code in it.
Yes, I quite a bit don't worry. I was just trying to be positive for
the fellow since he was obviously confused about what usenet is, I've
never seen him post before. I didn't want to appear to be lecturing,
but perhaps I went too soft wrt what future googling by newbies might
reveal...
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Tim Marshall wrote: Yes, I quite a bit don't worry.
Er, I do, sorry.
Anyway, I don't know what I was thinking when I wrote my response to
Aaron G and really managed to let some of my boneheadedness I thought I
was doing a good job of hiding slip out like an accidental fart at a
quiet party!!!
8)
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Tim Marshall <TI****@PurpleP andaChasers.Moe rtherium> wrote in
news:dc******** **@coranto.ucs. mun.ca: Tim Marshall wrote:
Yes, I quite a bit don't worry.
Er, I do, sorry.
Anyway, I don't know what I was thinking when I wrote my response to Aaron G and really managed to let some of my boneheadedness I thought I was doing a good job of hiding slip out like an accidental fart at a quiet party!!!
As opposed to an intentional fart?
--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jake Lloyd |
last post by:
In "A Note on Security In PHP" (partly in reference to a security flaw
that exists or recently did exist in phpBB) at
http://nl3.php.net/security-note.php
The PHP Group makes this claim:
"Every remote exploit can be avoided with very careful input validation."
This is very reassuring, if it is true, and it gives much to be said in
favor of implementing PHP in applications that accept remote user input.
But is it true?
One rarely sees an...
|
by: eje |
last post by:
IsNumeric(value) should return false if value "can not be
successfully converted to a Double." Instead I get the
following error message: "Input string was not in a
correct format."
I use the following function in a validating class to use
when needed. (Value = H880118A gave the error (like
other 'unconvertible' strings))
Public Function Numeric(ByVal value) As Boolean
|
by: IMS.Rushikesh |
last post by:
Hi All,
I am trying to execute below code but it gives me an COMException
///// Code Start ////
public string GetName(Excel.Range range)
{
try
{
if (range.Name != null)
|
by: James Doran |
last post by:
Hello,
I'd like to iterate through each Page of my ASP.NET project from
within a Custom web control and access the Page.Controls collection.
I've tried using Reflection on the web project assembly, but the
controls collection count was zero. While this method gives details
of the private controls in each page, I need access to actual
instances of the controls to interrogate their individual properties.
|
by: Mitchell Vincent |
last post by:
I've had this problem for a week, and it's just now getting to where I
can't work on a project because of it.
Every single project I load up in VS.NET 2003 that has an imagelist in
it gives me a compile error
"'System.Reflection.TargetInvocationException' occurred in mscorlib.dl"
on lines like "Me.imgAppointments.ImageStream =
CType(resources.GetObject("imgAppointments.ImageStream"),
System.Windows.Forms.ImageListStreamer)"
| |
by: Master Programmer |
last post by:
Thinking of learning VB.NET? New programmer? Thinking of Moving over
from VB 6.0?
Read on friend, let me help you make a more informed decision.........
Microsoft are a pathetic company, but they have got worse over the last
5 years. Here are just a few reasons (there are many more), not to
sacrifice
|
by: Bill |
last post by:
I have a 200 record database that includes a date/time field,
AnnivDate, for a wedding anniversary. AnnivDate has nulls and some
incorrect year data. I have been creating the Access database using
data imported from an Excel file and the person entering into Excel
only cared about the month and day portion and Excel added the current
year to the field value. I want to produce a report that shows
upcoming anniversaries using a parameter...
|
by: jonceramic |
last post by:
Hi guys,
I have a user who wants to have a report that shows only the 10th
value recorded by his equipment. (i.e. His equipment records
temperature every 30 seconds, but he only wants to view the data at
every 5 minutes.)
I proposed using the "mod" function in a WHERE statement on the
seconds "datepart" to test if each datapoint is an interval of 5
minutes from the starting number.
|
by: jan.marien |
last post by:
we have a table with jobs and a table with job_history information.
Users can define jobs and let them run every X minutes/hours , like a
cronjob.
The jobs table has the following trigger:
CREATE TRIGGER JOBS_AFTER_DELETE
AFTER DELETE ON JOBS
REFERENCING OLD AS o
FOR EACH ROW MODE DB2SQL
BEGIN ATOMIC
|
by: foryou |
last post by:
Earn 75 cents on every hour navigation Update!!
This site is one of the sites profitability, which is one of the best
types of profit and easier to open a page and leave the navigation of
self When the time browsing shrine division profit Hussain and gives
To apply for an hour navigation of 45 cents to 75 cents and unlimited
browsing.
Maximum payment is $ 25 gives you automatically among the first to the
fifteenth of the month calendar...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |