I am looking for a way to check two fields for duplication.
I have written on this topic before, and I am hoping someone has found a solution since then..
I have two tables:
MAIN:
MAINID (primary) auto incremented
promo (int) Linked to 2nd table
code (varchar)
cems (bigint)
date (date)
PROMO:
ID (primary) auto incremented
promo (varchar)
The table linking works perfectly,
I would like the CEMS field and the DATE fields checked for duplicates..so the only the same CEMS number on the same date will be flagged..and any other CEMS numbers on the same date will be accepted.
it is part of a validation system, to prevent the same CEMS card number from being used more then once per day per offer..
I have dupe checking turned on both the CEMS & Date fields..I would like to have it check a new row of data for duplicate CEMS and Date, not the columns. It seems to check down the field columns, instead of across the table field rows.
I have also limted the field length in the Database so when the Date is inserted automatically, it inserts the date as such
2005-02-01
that is from the DadaBik, drop down choice for insert date..
any help on this would be great..
I am running dadbik 3.2 stable
Thanks
Sam
I have written on this topic before, and I am hoping someone has found a solution since then..
I have two tables:
MAIN:
MAINID (primary) auto incremented
promo (int) Linked to 2nd table
code (varchar)
cems (bigint)
date (date)
PROMO:
ID (primary) auto incremented
promo (varchar)
The table linking works perfectly,
I would like the CEMS field and the DATE fields checked for duplicates..so the only the same CEMS number on the same date will be flagged..and any other CEMS numbers on the same date will be accepted.
it is part of a validation system, to prevent the same CEMS card number from being used more then once per day per offer..
I have dupe checking turned on both the CEMS & Date fields..I would like to have it check a new row of data for duplicate CEMS and Date, not the columns. It seems to check down the field columns, instead of across the table field rows.
I have also limted the field length in the Database so when the Date is inserted automatically, it inserts the date as such
2005-02-01
that is from the DadaBik, drop down choice for insert date..
any help on this would be great..
I am running dadbik 3.2 stable
Thanks
Sam