Solved

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

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

757 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

21 Experts available now in Live!

Get 1:1 Help Now