Solved

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

Posted on 2011-03-25
2
316 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

914 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

14 Experts available now in Live!

Get 1:1 Help Now