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 Rules



 
 
Thread Tools Display Modes
  #1  
Old April 25th, 2004, 10:43 PM
Tim Ferguson
external usenet poster
 
Posts: n/a
Default Validation Rules

"Jason Wills" wrote in
:

but i would like to make sure that people don't
type in anything in the field rather than use the lookup


That is not a job for a ValidationRule, it's a job for Referential
Integrity. Creating a relationship means "this field can only contain a
valid value from that table". As long as that rule is kept it doesn't
matter how the value gets the e.g. combo box, text box, VBA, Excel, MS
Query etc etc etc.

B Wishes


Tim F



  #2  
Old April 27th, 2004, 10:52 AM
Jason Wills
external usenet poster
 
Posts: n/a
Default Validation Rules

thanx for your responses, referential integrity unfortunately didn't work
for me, the list was already populated with other stuff, so i couldn't force
the integrity, but i understand that if i had designed it like this to start
with then i wouldn't have had the problem now.

fortunately the other post worked great, (setting the LimitToList property
to true)..

thanx both of you

regards

Jason
"Jason Wills" wrote in message
...
I would like to create a validation rule on a lookup field in a table.....

the lookup table works fine, but i would like to make sure that people

don't
type in anything in the field rather than use the lookup.... as this would
add a new record in the table with a name that i dont have control over

Any ideas would be great...

Cheers

Jason




 




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


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