Solved

Expression "VAR-Rnd()-PCT" in Access 2000

Posted on 2011-03-25
2
318 Views
Last Modified: 2012-05-11
Do you know  by any chance

What is the purpose of  "VAR-Rnd()-PCT" in Access 2000.

We named one field "VAR-RND-PCT" in Access 2000 table  However starting 3/11 this expression caused us problems.

In order to fix I have to rename field to something else.  However, what is the purpose of this expression.  Why it is giving us problems, but we did not have problems before
0
Comment
Question by:maximyshka
2 Comments
 
LVL 44

Accepted Solution

by:
GRayL earned 300 total points
ID: 35219464
Using 'strange' characters like - in an Access name is bound to cause problems.  Using names of Access functions like Rnd() is definitely error bound.  Using them together is a headache - which you have done.  It might be wise to have a look at:

http://www.acc-technology.com/namconv.htm
0
 
LVL 11

Assisted Solution

by:donaldmaloney
donaldmaloney earned 200 total points
ID: 35219509
Looking at it, it looks like access thinks you are using the function rnd() in an expression.
especially since you have -  (minus signs) in it
Using any function names in access could cause a problem since access will break the names apart in vb code and think that you are doing math with the field names.
If you are going to use something like this and have to then maybe change the name to VAR_RND_PCT,  this way there is no math and the field wil be sen as all text.
Don
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Record with #Error 8 34
MS Access VBA Code to Include Library References 4 52
How do I bind a table in Access 2013 to a form 5 36
error in For & Next statements 4 25
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

821 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