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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

prevent dupes if



 
 
Thread Tools Display Modes
  #1  
Old January 12th, 2010, 06:15 PM posted to microsoft.public.access.forms
deb
external usenet poster
 
Posts: 898
Default prevent dupes if

I have a form called f40projectMain(PK ProjectID) that has a CONTINUOUS
subform called f4ProjContacts. The form f4ProjContacts uses record source
that is the table t41ContactsProj(PK ProjectID and ContactSubID and
ContactID).

How can i check for dupes if ContactSubID= 48 or 49 and Current field =yes
per ProjectID?
There can be multiple ContactSubID= 48 or 49 if Current field =null or ""
or there can me multiple other ContactSubID's.
The Current field only pertains to ContactSubID 48 or 49 all other
ContactSubID's the Current field will be null or "".

ProjectID................ContactSubID.......Contac tID...Current
...1...............................48............. ...........3...............yes
...1...............................49............. ...........4...............yes
...1...............................49............. ...........6...............
...1...............................48............. ...........2...............yes this is a dupe (see below)
...2...............................48............. ...........4...............yes
...2...............................30............. ...........3...............
...2...............................30............. ...........6...............

this is a dupe since there is already a ContactSubID=48 that has Current
=yes for that particular project.
Translated...
ProjectID................ContactSubID.......Contac tID...Current
...abc123......................Manager............ ..Ann...............yes
...abc123......................ProjMgr............ ....Bob...............yes
...abc123......................ProjMgr............ ....Jim...............null
or ""
...abc123......................Manager............ ...Sue...............yes
this is a dupe
...def345.......................Manager........... ...Bob................yes
...def345.......................Intern............ ......Ann...............null or ""
...def345.......................Intern............ ......Jim...............null or ""

I really need your help!!

--
deb
  #2  
Old January 12th, 2010, 07:49 PM posted to microsoft.public.access.forms
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default prevent dupes if

Already responded to in one of your several other posts in another
newsgroup.

If you are really this desparate to get help, please consider locating a
paid help line...

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"deb" wrote in message
...
I have a form called f40projectMain(PK ProjectID) that has a CONTINUOUS
subform called f4ProjContacts. The form f4ProjContacts uses record source
that is the table t41ContactsProj(PK ProjectID and ContactSubID and
ContactID).

How can i check for dupes if ContactSubID= 48 or 49 and Current field
=yes
per ProjectID?
There can be multiple ContactSubID= 48 or 49 if Current field =null or ""
or there can me multiple other ContactSubID's.
The Current field only pertains to ContactSubID 48 or 49 all other
ContactSubID's the Current field will be null or "".

ProjectID................ContactSubID.......Contac tID...Current
..1...............................48.............. ..........3...............yes
..1...............................49.............. ..........4...............yes
..1...............................49.............. ..........6...............
..1...............................48.............. ..........2...............yes
this is a dupe (see below)
..2...............................48.............. ..........4...............yes
..2...............................30.............. ..........3...............
..2...............................30.............. ..........6...............

this is a dupe since there is already a ContactSubID=48 that has Current
=yes for that particular project.
Translated...
ProjectID................ContactSubID.......Contac tID...Current
..abc123......................Manager............. .Ann...............yes
..abc123......................ProjMgr............. ...Bob...............yes
..abc123......................ProjMgr............. ...Jim...............null
or ""
..abc123......................Manager............. ..Sue...............yes
this is a dupe
..def345.......................Manager............ ..Bob................yes
..def345.......................Intern............. .....Ann...............null
or ""
..def345.......................Intern............. .....Jim...............null
or ""

I really need your help!!

--
deb



 




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 03:41 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.