Solved

Error msgbox '31005' - Access failed......

Posted on 2007-11-25
7
947 Views
Last Modified: 2013-11-28
txtText1 is a form field bounded to tblMain. tblMain.Test1 is a mandatory field.

User entered a data in a text box and then removed it later for one reason or the other. User proceded to enter all other fields but skips txtTest1.

User eventually forgot to re-enter data in the txtTest1 form field. When user clicked the btnAddNew record to advance to a new record screen a msgbox flagged telling user that txtTest1 must be filled.

Also immediately and before user gets the chance to enter data in the txtTest1 form field, another  Microsoft Access Error '31005' dialogbox immediately popup with the following message :

"Access failed to evaluate one or more expressions because '|'
was referenced in an expression. Only functions and properties
that are considered to be safe are allowed in expressions when
Access runs in sandbox mode."

Question:
User does not know what this new message means and how to disable the msgbox from showing in the future.
0
Comment
Question by:billcute
7 Comments
 
LVL 46

Accepted Solution

by:
tbsgadi earned 200 total points
ID: 20345474
Hi billcute,

Checkout http://support.microsoft.com/kb/294698


Good Luck!

Gary
0
 
LVL 75

Assisted Solution

by:DatabaseMX (Joe Anderson - Access MVP)
DatabaseMX (Joe Anderson - Access MVP) earned 200 total points
ID: 20345998
Bill:

Open Access:
menu >>Tools>>Macro>>Security...
Se to Low.

mx
0
 
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 100 total points
ID: 20346680

  Not sure your going to find the answer to this as I believe it's an internal bug your running into.

  Access uses the | (vertical pipe) as a place holder for expressions as part of its internal processing.  When you see one in a error message, it generally means trouble.  In the past, I've actually had to code around it.

  Try turning off the macro warning first as the others have suggested.  That may clear it up.  After that, you'll need to take apart the process that is occuring when the error occurs and figure out if you can change something or do something differently not to trigger the error.

JimD
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 4

Author Comment

by:billcute
ID: 20349110
Mx:
By Setting to low seems okay but what are the consequences?
0
 
LVL 4

Author Comment

by:billcute
ID: 20349112
tbsgadi:
Your suggestions seems to provide better understanding of the problem.
0
 
LVL 75
ID: 20351012
"By Setting to low seems okay but what are the consequences?"

In theory, if set to Low, a 'virus' (not really) could be loaded. What that actually means is that someone could send you an MDB with an AutoExec Macro that runs a function that executes the Shell Command with deletes everything on your hard drive.  This happened once circa 2002 which is why M$ implemented the macro (in)Security mess for A2003. It is and always has been a joke, because it is *easily* circumvented a number of ways ... thus ... False Security.  IF ... it's Your MDB and you have control over it and you and your users are the only ones using it, then you don't really have anything to worry about.  IF ... *someone else* sent you a different MDB with the above scenario ... then you could have a problem ... because the Macro Setting is Global for Access.

mx
0
 
LVL 4

Author Comment

by:billcute
ID: 20354017
MX
Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now