Gossamer Forum
Home : Products : DBMan : Customization :

Duplicate records

Quote Reply
Duplicate records
Is there a mod for DBman to help keep from entering duplicate records?
Quote Reply
Re: [rdub] Duplicate records In reply to
The only thing you can do is select one field that you do not want duplicated and make that your key field.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Duplicate records In reply to
So instead of "recordid" I can make "name" the key field and nothing else should be affected?
Quote Reply
Re: [rdub] Duplicate records In reply to
You're changing an existing database? I'm not sure what would happen to your "recordid" field in subsequent records. That'll have to be something for you to experiment with.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Duplicate records In reply to
When I changed the key field it put the record number in the name field.
Quote Reply
Re: [rdub] Duplicate records In reply to
In your .cfg file, change

$db_key_track = 1;

to

$db_key_track = 0;


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Duplicate records In reply to
Maybe this can't be done. With that change the record number is not tracked and the next number is not entered.
Quote Reply
Re: [rdub] Duplicate records In reply to
That's right. There can only be one key.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Duplicate records In reply to
Once you get around 100 records how do you keep track of possible duplicates? Or don't you?
Quote Reply
Re: [rdub] Duplicate records In reply to
Most times it's not an issue. You could do a search before adding a new record if you're not sure whether one like that has been added already. It doesn't take that much time.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.