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 rule



 
 
Thread Tools Display Modes
  #1  
Old November 29th, 2004, 07:45 PM
atnsx80
external usenet poster
 
Posts: n/a
Default validation rule

HI,
I would like to use a validation rule for a field which would restrict the
values to be entered based on the previous fields combo box selection in my
table. for example if i choose dog in my first combo box, then then i would
like to restrict my next selection in the next field(combo box) to only dog
names. ie.. if field1=dog, then field2="xxx", "yyy","rrr"..

i hope this helps
  #2  
Old November 29th, 2004, 08:00 PM
Rick B
external usenet poster
 
Posts: n/a
Default

Sounds like you want to use cascading combo boxes (the source list of the
second depends on the selection in the first). If so, do a search on
cascading comboboxes. There are plenty of posts out there.

Another way would be to use an "If" statement in your source.

Rick B


"atnsx80" wrote in message
...
HI,
I would like to use a validation rule for a field which would restrict the
values to be entered based on the previous fields combo box selection in

my
table. for example if i choose dog in my first combo box, then then i

would
like to restrict my next selection in the next field(combo box) to only

dog
names. ie.. if field1=dog, then field2="xxx", "yyy","rrr"..

i hope this helps



  #3  
Old November 29th, 2004, 08:21 PM
atnsx80
external usenet poster
 
Posts: n/a
Default

Thanks Rick!

"Rick B" wrote:

Sounds like you want to use cascading combo boxes (the source list of the
second depends on the selection in the first). If so, do a search on
cascading comboboxes. There are plenty of posts out there.

Another way would be to use an "If" statement in your source.

Rick B


"atnsx80" wrote in message
...
HI,
I would like to use a validation rule for a field which would restrict the
values to be entered based on the previous fields combo box selection in

my
table. for example if i choose dog in my first combo box, then then i

would
like to restrict my next selection in the next field(combo box) to only

dog
names. ie.. if field1=dog, then field2="xxx", "yyy","rrr"..

i hope this helps




  #4  
Old November 30th, 2004, 12:33 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default

You posted a "validation" question in a "tablesdbdesign" newsgroup, and
refer to "previous fields combo box selection in my table." My assumption
is that you are working directly in a table, rather than via a form.

Tables are great for storing data, but lousy for displaying it. Rick B's
response about the use of cascading combo boxes works great in forms.

By the way, if you have used a "lookup" data type field in your table
definition, you and other users could end up confused -- lookup data types
are designed to store one value, but display something else. Check this
newsgroup on the topic of "lookup fields", or search Google.com on the same
for further discussion.

--
Good luck

Jeff Boyce
Access MVP

"atnsx80" wrote in message
...
HI,
I would like to use a validation rule for a field which would restrict the
values to be entered based on the previous fields combo box selection in

my
table. for example if i choose dog in my first combo box, then then i

would
like to restrict my next selection in the next field(combo box) to only

dog
names. ie.. if field1=dog, then field2="xxx", "yyy","rrr"..

i hope this helps


 




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
Validation Rule Somecallmejosh Using Forms 2 December 29th, 2004 08:43 PM
Fw: Validation rule problem Geo Using Forms 0 September 14th, 2004 08:38 AM
Validation Rule Shark General Discussion 2 July 28th, 2004 04:39 PM
Validation Rule question Lori Using Forms 1 July 20th, 2004 06:32 PM
Validation Rule Tom Database Design 3 May 18th, 2004 10:27 PM


All times are GMT +1. The time now is 01:14 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.