473,387 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

on click error

i had a button on a form. when clicked, the button runs code that
retrieve the values of unbound textboxes on the form and saved the
values in a table. the application runs fine on all pc except one. on
this one pc, when the button on the form is clicked, it gives this
error message: "the expression on click you entered as the event
property setting produced the following error: there was a problem
accessing a property or method of the OLE object."

the form consists of only 1 tab control, textboxes and combo boxes.
what is the cause of the error message and how do i remove it? any
help will be appreciated.
Dec 12 '07 #1
7 3492
There might be a problem with references on that machine:
http://allenbrowne.com/ser-38.html

A decompile might solve it.

If it's on Windows Vista, the might be permission issues:
http://allenbrowne.com/bug-17.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<fr*****@gmail.comwrote in message
news:52**********************************@d21g2000 prf.googlegroups.com...
>i had a button on a form. when clicked, the button runs code that
retrieve the values of unbound textboxes on the form and saved the
values in a table. the application runs fine on all pc except one. on
this one pc, when the button on the form is clicked, it gives this
error message: "the expression on click you entered as the event
property setting produced the following error: there was a problem
accessing a property or method of the OLE object."

the form consists of only 1 tab control, textboxes and combo boxes.
what is the cause of the error message and how do i remove it? any
help will be appreciated.
Dec 12 '07 #2
On Dec 13, 12:03 am, "Allen Browne" <AllenBro...@SeeSig.Invalid>
wrote:
There might be a problem with references on that machine:
http://allenbrowne.com/ser-38.html

A decompile might solve it.

If it's on Windows Vista, the might be permission issues:
http://allenbrowne.com/bug-17.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<fred...@gmail.comwrote in message

news:52**********************************@d21g2000 prf.googlegroups.com...
i had a button on a form. when clicked, the button runs code that
retrieve the values of unbound textboxes on the form and saved the
values in a table. the application runs fine on all pc except one. on
this one pc, when the button on the form is clicked, it gives this
error message: "the expression on click you entered as the event
property setting produced the following error: there was a problem
accessing a property or method of the OLE object."
the form consists of only 1 tab control, textboxes and combo boxes.
what is the cause of the error message and how do i remove it? any
help will be appreciated.
thanks for your reply. how do i do a decompile?

Dec 12 '07 #3
thanks for your reply. how do i do a decompile?

Decompile a copy of the database by entering something like this at the
command prompt while Access is not running. It is all one line, and include
the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"

Then open Access (holding down the Shift key if you have any startup code),
and compact. Twice.

Explanation:
An MDB contains 2 copies of the code:
- the text that you see and edit;
- the binary (compiled code) that actually executes.
These 2 can get out of sync.

The binary is different for every version of Access. Later versions can use
the binaries from earlier ones, but as soon as you modify anything, it gets
recompiled into the new version. If you open with an older version, it can't
read the newer binary, so it recompiles into the old one. This is all
supposed to happen transparently, but in fact errors occur, it bloats, and
there can be weird problems (such as phantom break points, or code that
won't stay compiled.)

A decompile explicitly instructs Access to dump the entire binary. Then you
compact (to completely remove the discarded binary.) It now re-creates the
binary from the text version, and so these particular kinds of error are
gone.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

Dec 13 '07 #4
Decompile a copy of the database by entering something like this at the
command prompt while Access is not running. It is all one line, and include
the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"
is there any tools out there to do this in batches? or at least
something that would take less time then a command promt.

dont get me wrong, i think it is great that we can do it at all, but
it would be nice to be able to browse to the file and hit a button.
this is windows after all. :)
Dec 14 '07 #5
On Dec 14, 11:34 am, DawnTreader <alanrt...@gmail.comwrote:
Decompile a copy of the database by entering something like this at the
command prompt while Access is not running. It is all one line, and include
the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"

is there any tools out there to do this in batches? or at least
something that would take less time then a command promt.
you could always create a shortcut with that exact command in it. That
way you just double click the short cut everytime...

Tim
Dec 14 '07 #6
On Dec 14, 8:50 am, Tim Ricard <tric...@gmail.comwrote:
On Dec 14, 11:34 am, DawnTreader <alanrt...@gmail.comwrote:
Decompile a copy of the database by entering something like this at the
command prompt while Access is not running. It is all one line, and include
the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"
is there any tools out there to do this in batches? or at least
something that would take less time then a command promt.

you could always create a shortcut with that exact command in it. That
way you just doubleclickthe short cut everytime...

Tim
i had tried that, the shortcut on the start menu isnt a good place to
start. works better if you navigate to the exe and create a shortcut
from scratch.

works good. :)
Dec 14 '07 #7
There are various approaches for this.

What I personally do put a text file on the desktop, and include a line for
each of the databases I'm working on at the moment. Double-click the file to
open in Notepad. Copy the appropriate line. Paste into the command prompt,
holding down Shift to avoid the startup code.

Since I'm using 5 versions of Access, I can create the appropriate line for
each mdb/accdb.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"DawnTreader" <al*******@gmail.comwrote in message
news:ca**********************************@e6g2000p rf.googlegroups.com...
On Dec 14, 8:50 am, Tim Ricard <tric...@gmail.comwrote:
>On Dec 14, 11:34 am, DawnTreader <alanrt...@gmail.comwrote:
Decompile a copy of the database by entering something like this at
the
command prompt while Access is not running. It is all one line, and
include
the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe"
/decompile
"c:\MyPath\MyDatabase.mdb"
is there any tools out there to do this in batches? or at least
something that would take less time then a command promt.

you could always create a shortcut with that exact command in it. That
way you just doubleclickthe short cut everytime...

Tim

i had tried that, the shortcut on the start menu isnt a good place to
start. works better if you navigate to the exe and create a shortcut
from scratch.

works good. :)
Dec 15 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Nicolas Verhaeghe | last post by:
I have designed an application which uses the Crystal Reports 8.5 ActiveX to show a report as a PDF. The report is compiled from a SQL database populated through web forms programmed in ASP. ...
8
by: George Hester | last post by:
In a page I have when the user left-clicks the page a Input box for a form gets the focus. But if the user right-clicks the page the Input box is not getting the focus. I'd like the Input box to...
2
by: Pete | last post by:
I have some funky form/event behavior. Access 97. Split frontend/backend, using Access security. I have the same behavior (or lack of behavior) for the pag_Click() event of two separate pages...
0
by: Quentin Huo | last post by:
Hi: In my page, there is a user control and there are some actions in the user control like "save", "delete",...which are the control <asp:button onclick="btSave_Click" ......>. And there are...
1
by: Martin | last post by:
Hi, I have produced a custom server control that simple outputs a row of 26 buttons, one button for each letter of the english alphabet. now what I would like to do is catch the button click...
0
by: maitrepoy | last post by:
I have to create a small addin which works on Powerpoint, Word, Outlook, and Excel on Office 2000, XP, and 2003. This addin consists in adding 2 new Buttons in the "File" Menu of office. This is...
0
by: maitrepoy | last post by:
Hello I have to create a small addin which works on Powerpoint, Word, Outlook, and Excel on Office 2000, XP, and 2003. This addin consists in adding 2 new Buttons in the "File" Menu of office....
0
by: maitrepoy | last post by:
hello I have to create a small addin which works on Powerpoint, Word, Outlook, and Excel on Office 2000, XP, and 2003. This addin consists in adding 2 new Buttons in the "File" Menu of office....
21
by: Ben | last post by:
Hello I have frames set up in an asp.net application and need one frame to refresh another. Seeing as events need to be registered at the time the page is sent from the server, I was wondering...
1
by: Abbas | last post by:
Hello, I am working on a site with an input form that has required field validators. If the user doesn't enter something in one of the textboxes, the error message appears. When they enter...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.