CodeConnect.Net Beta


   Explore    Entry   Register  Login  
windowsxp-general
access
windows-vista-mail
windows-vista-general
windowsupdate
windowsmedia-player
access-forms
windows-live-mail-desktop
windowsxp-help_and_support
access-queries
access-modulesdaovba
access-formscoding
windows-server-sbs
windows-server-general
access-reports
windows-vista-music_pictures_video
windowsce-platbuilder
windows-live-messenger
windows-terminal_services
windows-powershell
windows-server-active_directory
access-gettingstarted
windows-mediacenter
windowsxp-hardware
windowsxp-network_web
windows-64bit-general
windows-live-sync
windows-vista-hardware_devices
windows-inetexplorer-ie6_outlookexpress
windows-group_policy
windows-server-networking
windows-vista-installation_setup
windows-vista-networking_sharing
windowsxp-basics
access-tablesdbdesign
windowsxp-perform_maintain
windows-vista-performance_maintenance
windows-networking-wireless
windows-vista-file_management
windows-inetexplorer-ie6-browser
windows-server-dns
windows-server-update_services
windows-vista-security
windows-vista-administration_accounts_passwords
windows-vista-games
windows-file_system
access-activexcontrol
windows-live-foldershare
windows-live-photogallery
access-developers-toolkitode
access-conversion




Can Reply:  Yes Members Can Edit: No Online: Yes
Zone: > Microsoft News > microsoft.public.access.tablesdbdesign Tags:
Item Type: Date Entered: 10/23/2009 5:56:01 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 103 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
=?Utf-8?B?amF3b
NewsGroup User
Table validation rule - allow only one occurence in a field10/23/2009 5:56:01 PM
Reply

0

Hello,
Suppose there's a table (many side):

ID (PK)
ID_foreign (FK)
field 1
field 2
yes/no field

How can I allow ONLY ONE record to have "yes/no field" = True? (with table
validation rule)
In case a user sets a second record "yes/no field" = True an error is
triggered.

Thank you for suggestions.

Access 2003
"PieterLinden v
NewsGroup User
Re: Table validation rule - allow only one occurence in a field10/23/2009 10:48:24 PM
Reply

0

jaworski_m wrote:
>Hello,
>Suppose there's a table (many side):
>
>ID (PK)
>ID_foreign (FK)
>field 1
>field 2
>yes/no field
>
>How can I allow ONLY ONE record to have "yes/no field" = True? (with table
>validation rule)
>In case a user sets a second record "yes/no field" = True an error is
>triggered.
>
What happens when you add a unique index (no duplicates) to the yes/no field?
>Thank you for suggestions.
>
>Access 2003

--
Message posted via http://www.accessmonster.com

"PieterLinden v
NewsGroup User
Re: Table validation rule - allow only one occurence in a field10/23/2009 10:49:14 PM
Reply

0

jaworski_m wrote:
>Hello,
>Suppose there's a table (many side):
>
>ID (PK)
>ID_foreign (FK)
>field 1
>field 2
>yes/no field
>
>How can I allow ONLY ONE record to have "yes/no field" = True? (with table
>validation rule)
>In case a user sets a second record "yes/no field" = True an error is
>triggered.
>
What happens when you add a unique index (no duplicates) to the yes/no field?
You do realize that with this rule enforced at table level, you can only have
two records in your table, right? (one Yes and one No).
>Thank you for suggestions.
>
>Access 2003

--
Message posted via http://www.accessmonster.com

=?Utf-8?B?amF3b
NewsGroup User
Re: Table validation rule - allow only one occurence in a field10/24/2009 2:46:02 PM
Reply

0

> You do realize that with this rule enforced at table level, you can only have
> two records in your table, right? (one Yes and one No).

Yes, correct. But I would like to have Many records (not only 2) and only
ONE with value "Yes".



"PieterLinden via AccessMonster.com" wrote:

> jaworski_m wrote:
> >Hello,
> >Suppose there's a table (many side):
> >
> >ID (PK)
> >ID_foreign (FK)
> >field 1
> >field 2
> >yes/no field
> >
> >How can I allow ONLY ONE record to have "yes/no field" = True? (with table
> >validation rule)
> >In case a user sets a second record "yes/no field" = True an error is
> >triggered.
> >
> What happens when you add a unique index (no duplicates) to the yes/no field?
> You do realize that with this rule enforced at table level, you can only have
> two records in your table, right? (one Yes and one No).
> >Thank you for suggestions.
> >
> >Access 2003
>
> --
> Message posted via http://www.accessmonster.com
>
> .
>
=?Utf-8?B?S0FST
NewsGroup User
Re: Table validation rule - allow only one occurence in a field10/26/2009 4:40:01 PM
Reply

0

I do not hink you can do it in a table but in a form.

If DSum <>0 then message and not allow change of checkbox.

--
Build a little, test a little.


"jaworski_m" wrote:

> > You do realize that with this rule enforced at table level, you can only have
> > two records in your table, right? (one Yes and one No).
>
> Yes, correct. But I would like to have Many records (not only 2) and only
> ONE with value "Yes".
>
>
>
> "PieterLinden via AccessMonster.com" wrote:
>
> > jaworski_m wrote:
> > >Hello,
> > >Suppose there's a table (many side):
> > >
> > >ID (PK)
> > >ID_foreign (FK)
> > >field 1
> > >field 2
> > >yes/no field
> > >
> > >How can I allow ONLY ONE record to have "yes/no field" = True? (with table
> > >validation rule)
> > >In case a user sets a second record "yes/no field" = True an error is
> > >triggered.
> > >
> > What happens when you add a unique index (no duplicates) to the yes/no field?
> > You do realize that with this rule enforced at table level, you can only have
> > two records in your table, right? (one Yes and one No).
> > >Thank you for suggestions.
> > >
> > >Access 2003
> >
> > --
> > Message posted via http://www.accessmonster.com
> >
> > .
> >
5 Items, 1 Pages 1 |< << Go >> >|







Similar:

reason for this limitation (portal size)

dnn 3.2.2 without ms cdo client layer

bug: unauthenticated user being logged in as authenticated user.

2.0 - transactional support

minor core change suggestion.

disable users from changing their passwords

custom enhancements to the core

custom portal settings?

url rewrite

idatareader vs. xmlreader in dataprovider model

bug: 3.0.13: server validation fails on update settings with firefox

problem with skin.vb and images

3.08 preview in text editor not working

process for requesting enhancements

help! site log: how to translate the "report type" dropdown list items (dnn 3.1.1 and below)

cant retieve id through querystring...can anyone help me?

multilanguage support in core framework?

time and date not set correctly

events module

renaming the admin role in dnn

httphandler - allowing a file download in hyperlink to it

will 3.0 ship with a language switcher module?

is dotnetnuke.sln needd any more?

upgrade documentation?

very odd... "page delete", "page settings" grayed out. disabled

security

upload images from html module

how do i cache settings?

uploading images from html module

[links] module whitespace?

scheduler and cache?

paypal subscription error with locale nl-nl and other european language packs!

gallery module

user customization

upgrade

c# version of dnn

reminder me .....

3.0.12 - bug: change dotnetnuke.webcontrols and dotnetnuke.webutility references in dotnetnuke.vbproj to project references

dnn2 to dnn3 namespace reorg map

ml specification for module developers?

application framework

text/html module text centering problem

getting member roles security error

setting the font in html/text editor

simple site log request for 3.0

duplicate emails

nunit testing of dataproviders (access)

dnn 3.0 - to core team - impending break due to friendly urls?

container css and links module

asp.net 2.0

   
  Privacy | Contact Us
All Times Are GMT