detail form duplicating ID field

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
drcaa
User
Posts: 3

detail form duplicating ID field

Post by drcaa »

Greetings for all!

Suppose this environment:
a patient table with a patient_id (PK AI),
a diagnosis table with a diag_id (PK AI) and
a detail table patient_diag with two foreign keys for those PK's and a field called just ID (PK) for PHPMaker to let me add records to this table.

In detail table I set the foreign keys as "SELECT" (comboboxes in MS Access) to lookup fields in master tables, so users have not to fill in ID's, just names.

After generating files, when I open patient_diag form the patient_id field has its values duplicated (e.g. 2 patients #1, 2 patients #2, and so on).

Does anybody know why this happens?


danielc
User
Posts: 1601

Post by danielc »

One of your possibility is your patient table do not contain unique record. Another possibility is your "select" setup for the Lookup table.

Try to enable debug mode to see the sql, click [Tools]->[Advanced Settings]->[Debug]. And post your sql for further discussion.


Post Reply