473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Table syntax

I am trying to set up a table in Access 2003. I want to make a field validation rule that forces that field to be greater than 10+ a previous field (currency). I put in '>"field_1"+10' but MS Access says that it's incorrect or too complicated. What am I doing wrong?
Jul 9 '08 #1
5 1230
missinglinq
3,532 Expert 2GB
Access is very strange in how this has to be handled! You can't refer to one field in the criteria for another field, as you've found out. What you have to do is, from Design View for the table, right click, then click on Properties, then in the Validation Rule for the table, enter

[Field_2]>[Field_1]+10

where Field_2 is the criteria field. you're applying the criteria to.

Welcome to Bytes!

Linq ;0)>
Jul 10 '08 #2
Access is very strange in how this has to be handled! You can't refer to one field in the criteria for another field, as you've found out. What you have to do is, from Design View for the table, right click, then click on Properties, then in the Criteria Property for the table, enter

[Field_2]>[Field_1]+10

where Field_2 is the criteria field. you're applying the criteria to.

Welcome to Bytes!

Linq ;0)>

First, thank you for such a rapid reply!
Second, I did as you said, but there was no "Criteria Properties" there. A search of the Help screens said that that was a query property. Am I missing something? Are you referring to a later versio of access? (I am on 2003).

Thank you again!
Jul 10 '08 #3
missinglinq
3,532 Expert 2GB
My apologies! Follow the above instructions but substitute Validation Rule where I said Criteria Properties! I've edited that post to reflect this; don't want to lead anyone else astray!

Linq ;0)>
Jul 10 '08 #4
My apologies! Follow the above instructions but substitute Validation Rule where I said Criteria Properties! I've edited that post to reflect this; don't want to lead anyone else astray!

Linq ;0)>


That seems to have worked! Thank you so very much!
Jul 10 '08 #5
missinglinq
3,532 Expert 2GB
Glad we could help!

Linq ;0)>
Jul 10 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Xah Lee | last post by:
Here's the belated Java solution. import java.util.List; import java.util.ArrayList; import java.lang.Math; class math { public static List range(double n) { return range(1,n,1); }
6
by: Brian Basquille | last post by:
Just started learning SQL recently. But one thing i'm still not clear on is about altering relationships between tables after they've been created. Instead of creating a foreign key when the...
36
by: toedipper | last post by:
Hello, I am designing a table of vehicle types, nothing special, just a list of unique vehicle types such as truck, lorry, bike, motor bike, plane, tractor etc etc For the table design I am...
3
by: J West | last post by:
Warning: Error while executing this query:CREATE TABLE "purchaseorder" ( "PurchaseOrderID" int(10) unsigned NOT NULL auto_increment, "PurchaseCost" double unsigned zerofill NOT NULL default...
7
by: Zri Man | last post by:
I have searched far and wide (not wide enough some might chip in) but cannot find the syntax for creating a staging table for an MQT. IBM manuals talk long and longer in serveral sections of this...
4
by: sheree | last post by:
I have 3 tables (amoung a few others) in a small access database. The tables are as follows: == AEReport -------- AEID (PK) RptCatelog GCRCID PatientID EvntDate
2
by: Maverick | last post by:
If i try to create foxpro table by the following "sql" statment, the C# compiler will only return an error "xxxx not support in non-dbc version". The "index on" command statement return some kind...
1
by: asearle | last post by:
Dear all, I have been working to implement a scrolling table into an xml / xsl interface and so far have managed to put together an acceptable version using <thead> and <tbody> syntax. Indeed for...
9
by: fniles | last post by:
I would like to copy a table(s) from SQL Server 2005 to a CVS file and vice versa. I was thinking to use the BCP command line utility, but I have a few questions: 1. The machine where I am...
2
by: Sudhakar | last post by:
hi I am using MySQL - 4.1.22 when i use the following sql query $result = mysql_query("SHOW tablename STATUS FROM databasename;"); i have also tried = $result = mysql_query("SHOW tablename...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.