Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-03-25
2
Medium Priority
?
324 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 1200 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 800 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
If you’re using QODBC to update QuickBooks data from Microsoft® Access but Access is not showing the updated data, you could have set up QODBC incorrectly.
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…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

824 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