472,782 Members | 1,086 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Problem with Access form

I have an Access 2000 form which has been running OK for a long time.
Lately, it is playing up and doing things like causing Access to close
suddenly when the form is opened or when saving the form in design view
after a change. Today, I got the following message from the form when using
a combo box.

"The expression After Update you entered as the event property setting
produced the following error: A problem occurred while Microsoft Access was
communicating with the OLE server or ActiveX Control."

It seems like the form is somehow corrupted. I have tried creating a new
database container and importing a new version of the form. I have gone
back about 2 months of development and redeveloped the form up to its
current state, yet the problem persists.

There is no such thing as an Access virus is there? Something is wrong and
it is driving me around the twist.

dixie
Nov 13 '05 #1
3 2613
dixie wrote:
I have an Access 2000 form which has been running OK for a long time. Lately, it is playing up and doing things like causing Access to close suddenly when the form is opened or when saving the form in design view after a change. Today, I got the following message from the form when using a combo box.

"The expression After Update you entered as the event property setting produced the following error: A problem occurred while Microsoft Access was communicating with the OLE server or ActiveX Control."

It seems like the form is somehow corrupted. I have tried creating a new database container and importing a new version of the form. I have gone back about 2 months of development and redeveloped the form up to its current state, yet the problem persists.

There is no such thing as an Access virus is there? Something is wrong and it is driving me around the twist.

dixie


Hi Dixie,

I certainly sympathize with your frustrating problem. I had a similar
problem when Access somehow embedded a control character into my form
code. Perhaps try copying all the code behind your form into a .txt
file and running it through a filter that strips out all unprintable
characters. Make sure the filter counts how many unprintable
characters were omitted. If you catch any you've found the problem.
Also try Decompile (after compacting a backup) before doing all that.

James A. Fortune

Nov 13 '05 #2
James, I did not have a filter to do that, so I used NotePad Lite and
converted the text to ASCII which I think would achieve the same thing. I
have now tried both your suggestions, and unfortunately, Access is still
randomly closing when I open the form. I thought I may have had too many
controls in the form and have just removed about 7 controls that were left
overs from early development, but alas, still the same problem. I forgot to
mention that I have used Total Access Analyser on this form and it reports
no errors. I am afraid that I might have to build this form from scratch
and that would be a very large task as it is quite a complex form. The
worry is that if I invest the time to do that, it might still have a
problem, as every thing I have tried so far has failed to fixed it. I have
also tried repairing the Access installation and running it on another
computer, so at least I can eliminate any worries that it is either my copy
of A2k or something computer specific.

Oh, well, back to the drawing board.

dixie

<ji********@compumarc.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
dixie wrote:
I have an Access 2000 form which has been running OK for a long time.

Lately, it is playing up and doing things like causing Access to

close
suddenly when the form is opened or when saving the form in design

view
after a change. Today, I got the following message from the form

when using
a combo box.

"The expression After Update you entered as the event property

setting
produced the following error: A problem occurred while Microsoft

Access was
communicating with the OLE server or ActiveX Control."

It seems like the form is somehow corrupted. I have tried creating a

new
database container and importing a new version of the form. I have

gone
back about 2 months of development and redeveloped the form up to its

current state, yet the problem persists.

There is no such thing as an Access virus is there? Something is

wrong and
it is driving me around the twist.

dixie


Hi Dixie,

I certainly sympathize with your frustrating problem. I had a similar
problem when Access somehow embedded a control character into my form
code. Perhaps try copying all the code behind your form into a .txt
file and running it through a filter that strips out all unprintable
characters. Make sure the filter counts how many unprintable
characters were omitted. If you catch any you've found the problem.
Also try Decompile (after compacting a backup) before doing all that.

James A. Fortune

Nov 13 '05 #3
dixie wrote:
James, I did not have a filter to do that, so I used NotePad Lite and converted the text to ASCII which I think would achieve the same thing. I have now tried both your suggestions, and unfortunately, Access is still randomly closing when I open the form. I thought I may have had too many controls in the form and have just removed about 7 controls that were left overs from early development, but alas, still the same problem. I forgot to mention that I have used Total Access Analyser on this form and it reports no errors. I am afraid that I might have to build this form from scratch and that would be a very large task as it is quite a complex form. The worry is that if I invest the time to do that, it might still have a
problem, as every thing I have tried so far has failed to fixed it. I have also tried repairing the Access installation and running it on another computer, so at least I can eliminate any worries that it is either my copy of A2k or something computer specific.

Oh, well, back to the drawing board.

dixie


The next thing I'd be most suspicious of is an API call. They are
notorious for causing page faults, crashes, mysterious behavior, etc.
I think the book:

Win32 API Programming with Visual Basic
Steven Roman, Ph. D.
O'Reilly And Associates
January 2000
ISBN: 1-56592-631-5

has some code in it to identify the last API error (LastDLLError
actually). His replacement for the default error handler to head off
GPFs in Chapter 8 can also provide lots of information about what has
gone wrong. Your description reminded me of their sometimes mysterious
behavior. The fact that it was working for awhile and then stopped
working correctly doesn't really point to an API function call error
since they work well when the correct datatypes are supplied (except
that mixed up ByVal and ByRef declaration parameters can hose the call
as well), but they're still good candidates for causing Access to whack
out. So, in summary, check for API calls. If you are not calling any
API functions at least try to keep Access from closing using Steven's
techniques long enough to get some information about the LastDLLError
or information about what's causing a GPF. This approach may help
solve your problem whether it's caused by API calls or by something
else.

James A. Fortune

Nov 13 '05 #4

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

Similar topics

1
by: Techy | last post by:
I have hancoded the asp page for inserting the values into an Ms Access > Database and it work fine > > The problem I am facing is that once I insert any value with Decimals like " > 11.95" or...
5
by: will eichert | last post by:
Greetings. I have a problem with a combo box incorrectly displaying blank items when returning to a form from a modal form. It's fine when the main form first comes up, but gets messed up when the...
2
by: Shaun | last post by:
Ok here is the situation… Have an access 20002 application that I'm converting to have a SQL Server backend (2000), the application has been in use with an access backend for years, no real...
4
by: Eric E | last post by:
Hi all, I have a fairly complex form in Access 2000. In particular, it has two subforms on separate tabs of a tab control. For the last two weeks, I've encountered the dreaded : "You can't...
3
by: StBond | last post by:
Hi everyone, I am new to Access and Visual Basic so things my be getting across a bit cloudy. I only started using VB for one week. I am having a little problem with the database that I am...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
17
by: radio1 | last post by:
Configuration: Access 2002 and SQL Server 2000 using a .ADP Project. I would VERY MUCH appreciate anyone's input into this problem I'm having. I have a form in Access that does not permit...
11
by: eBob.com | last post by:
I have this nasty problem with Shared methods and what I think of as "global storage" - i.e. storage declared outside of any subroutines or functions. In the simple example below this "global"...
3
by: prakashwadhwani | last post by:
I have just been asked to port an Access 97 app from an old Pentium 3 to a new Pentium Core-2-Duo PC. On the new PC, Office 2003 is installed. On opening the database, Access provided me with an...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.