A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Validation: Basic Problem from a new user



 
 
Thread Tools Display Modes
  #1  
Old May 9th, 2006, 08:11 PM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Validation: Basic Problem from a new user

I have created a ticket system.

In one table I have the fields OAP, Child and Adult.

No field is allowed to have a greater value (or equal) than 4 and
collectivly they must be equal or less than four.

I've tried a few validation methods but none have worked.

Please help!
  #2  
Old May 9th, 2006, 08:20 PM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Validation: Basic Problem from a new user



"Damo447" wrote:

I have created a ticket system.

In one table I have the fields OAP, Child and Adult.

No field is allowed to have a greater value (or equal) than 4 and
collectivly they must be equal or less than four.

I've tried a few validation methods but none have worked.

Please help!

  #3  
Old May 9th, 2006, 10:59 PM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Validation: Basic Problem from a new user

In a table-level validation rule, you cannot reference other columns. You'll
have to do this at the form level.

Barry

"Damo447" wrote:

I have created a ticket system.

In one table I have the fields OAP, Child and Adult.

No field is allowed to have a greater value (or equal) than 4 and
collectivly they must be equal or less than four.

I've tried a few validation methods but none have worked.

Please help!

  #4  
Old May 10th, 2006, 03:07 AM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Validation: Basic Problem from a new user

"Barry Gilbert" wrote in message
...
In a table-level validation rule, you cannot reference other columns. You'll
have to do this at the form level.


Incorrect. In table design you cannot create a *field* validation rule that
references other fields but you can create a *table* level validation rule that
does.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #5  
Old May 10th, 2006, 05:08 AM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Validation: Basic Problem from a new user

My mistake. Open the table in design view. Select ViewProperties. In the
Validation Rule property, enter:

[oap]4 And [child]4 And [adult]4 And ([oap]+[child]+[adult]4)

Barry

"Rick Brandt" wrote:

"Barry Gilbert" wrote in message
...
In a table-level validation rule, you cannot reference other columns. You'll
have to do this at the form level.


Incorrect. In table design you cannot create a *field* validation rule that
references other fields but you can create a *table* level validation rule that
does.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Defined Style Problem - Where to post? Dave M New Users 3 January 5th, 2006 09:49 AM
Please help. Visual Basic problem Nancy New Users 0 October 25th, 2005 03:30 PM
Corrupt Windows Componenet, or Outlook Problem? BPC23 com> General Discussion 0 May 27th, 2005 06:08 PM
Validation of User Data Entry of Excel Range Address Rick Grieser Worksheet Functions 1 September 5th, 2004 09:57 PM
Columns and layout problems Phil Setting Up & Running Reports 4 August 18th, 2004 01:34 PM


All times are GMT +1. The time now is 11:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.