I'd already been through a couple, but have been through then all again now, but they don't really answer my query.
I'm still not sure how I setup the InsertSQL in the Object Inspector to just update the min table (Stakeholder), i.e. ignoring the inner join to the Stakeholder_Type.
Any further help would be really appreciated so I can understand how the SQL query works with the other three SLQ queries in the Object Inspector.
That's a problem with your primary key.
I explained it earlier. Make your fields persistent in desingtime. Go to your primary field and set the property required to false.
http://wiki.freepascal.org/SQLdb_Tutorial1
...
What I don't understand fully is that if I just use a simple SQL statement such as
SELECT ID, Field2, Field3, Field4 From Table1
And do an insert from a set of assigned edit controls it works even if none of the field are filled in; it even sorts out the autoincrement field.
However as soon as I include an inner join to another table it fails with either the dataset is read only (without InterSQL setup) or assigning a Null value (if I set up an InsertSQL)
...
I've already done what you suggest.
I'm just not sure what or where to do next.
Any further thoughts?
This is really hard to diagnose without knowing the table definitions.
Otherwise try to make a small example project with a small database and see if it happens there too. If it does you can post that example.
However when I run it, I get an error message saying that I'm trying to assign a Null value to a non variant - probably for a field that is connected to a form control which doesn't have anything in it.And this might also not even have anything to do with your insert statement.
the property required should only be used if fields are not visible on form, but requires an input into the table.+1
That's why the primary field mostly is set to false. But it doesn't have to. In firebird I get the autoincrement value of the table first and put it in my field. In this case the default value of property required is true.
In most cases the property required is very usefull, because it tells the user not set the field on blank.
john fatherIf you update a record with the value john, you're database raises an error.
john grandfather
jane sister