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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|