Use the ADD5 template [message #1572] |
Tue, 26 August 2008 13:46 |
gpatti
Messages: 283 Registered: August 2008
|
Senior Member |
|
|
I am trying to add multiple records into a table using the ADD5 function. However, I am getting error "Primary key (key name) is not complete - check selection".
I am calling the task from a parent screen (multi2) and expecting to see a number of blank rows in which to enter data. If I call the ADD2 function from this screen in exactly the same way everything works fine, but the ADD5 function gives the primary key error.
The primary key will be different for each inserted row anyway so I don't understand why the function expects it to be set in advance. The primary key is an auto increment and so is not set until database insert.
I'm clearly missing something obvious here so any pointers would be much appreciated.
|
|
|