PC Review


Reply
Thread Tools Rate Thread

Composite Key and Input

 
 
JohS
Guest
Posts: n/a
 
      2nd Aug 2007
Hi

I'm using a Composite Key of 3 indexes and am using 3 ComboBoxes to input.
But as I'm putting in new data into the fields I would come to the last
ComboBox and then I would have the message of that this record exist from
before (I'll have this message: "The changes you requested to the table were
not successful because they would create duplicate values in the index,
primary key, or relationship."). How could I prevent this from happing? Do I
need a VBA function to test if all these 3 input ComboBox data already
exist, and then just let them be populated, or if not add into a new record?
(Or is it any adjustment (some kind of form function) I could do inside
Access's own properties). Thanks, JohS


 
Reply With Quote
 
 
 
 
pietlinden@hotmail.com
Guest
Posts: n/a
 
      2nd Aug 2007
On Aug 2, 12:11 pm, "JohS" <solimpn...@webmail.no> wrote:
> Hi
>
> I'm using a Composite Key of 3 indexes and am using 3 ComboBoxes to input.
> But as I'm putting in new data into the fields I would come to the last
> ComboBox and then I would have the message of that this record exist from
> before (I'll have this message: "The changes you requested to the table were
> not successful because they would create duplicate values in the index,
> primary key, or relationship."). How could I prevent this from happing? Do I
> need a VBA function to test if all these 3 input ComboBox data already
> exist, and then just let them be populated, or if not add into a new record?
> (Or is it any adjustment (some kind of form function) I could do inside
> Access's own properties). Thanks, JohS


One thing you could do is use the find Unmatched query wizard to
figure out which values have not been used... then you can only choose
these values. The rest would be eliminated from the combobox.

 
Reply With Quote
 
JohS
Guest
Posts: n/a
 
      4th Aug 2007
Thanks
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Aug 2, 12:11 pm, "JohS" <solimpn...@webmail.no> wrote:
>> Hi
>>
>> I'm using a Composite Key of 3 indexes and am using 3 ComboBoxes to
>> input.
>> But as I'm putting in new data into the fields I would come to the last
>> ComboBox and then I would have the message of that this record exist from
>> before (I'll have this message: "The changes you requested to the table
>> were
>> not successful because they would create duplicate values in the index,
>> primary key, or relationship."). How could I prevent this from happing?
>> Do I
>> need a VBA function to test if all these 3 input ComboBox data already
>> exist, and then just let them be populated, or if not add into a new
>> record?
>> (Or is it any adjustment (some kind of form function) I could do inside
>> Access's own properties). Thanks, JohS

>
> One thing you could do is use the find Unmatched query wizard to
> figure out which values have not been used... then you can only choose
> these values. The rest would be eliminated from the combobox.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Capture composite PK for input in second and third table tbrogdon@gmail.com Microsoft Access Getting Started 0 21st Jan 2008 07:10 AM
Looking for a TV Capture card with 2 composite input sets. jeremyje@gmail.com ATI Video Cards 12 7th Oct 2006 03:29 PM
TV Capture card with 2 composite input sets jeremyje@gmail.com ATI Video Cards 0 2nd Oct 2006 08:44 PM
HELP: No composite or S-Video input Pete Kendrick ATI Video Cards 4 9th Apr 2004 05:20 PM
ATI AIW8500 DV: Is TV tuner input supposed to be better than composite input? author ATI Video Cards 2 2nd Sep 2003 03:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:36 PM.