R
Raider
Hello. I have a problem with bound subform.
I have a MAIN table with following fields:
[id] (int - identity - not null - primary key), [title] (nvarchar) ...
and the SUB table with
[sid] (int - identity - not null - primary key), [mid] (int - not null),
[desc] (nvarchar), ...
I created form MAINFRM based on MAIN recordset and subform based on SUB
records. They are linked via [id]=[mid].
If user creates new record by MAINFRM, types [title] then fills [desc]s -
all works fine. But if in a new MAINFRM's record user try to fill [desc] as
a first step, the error message appears (about setting non-variant field to
Null).
I undersnad that new record have no [id] (i.e. =Null) and Access tries to
set [mid] to Null, so it fails.
But HOW TO GET ROUND THIS?
I have a MAIN table with following fields:
[id] (int - identity - not null - primary key), [title] (nvarchar) ...
and the SUB table with
[sid] (int - identity - not null - primary key), [mid] (int - not null),
[desc] (nvarchar), ...
I created form MAINFRM based on MAIN recordset and subform based on SUB
records. They are linked via [id]=[mid].
If user creates new record by MAINFRM, types [title] then fills [desc]s -
all works fine. But if in a new MAINFRM's record user try to fill [desc] as
a first step, the error message appears (about setting non-variant field to
Null).
I undersnad that new record have no [id] (i.e. =Null) and Access tries to
set [mid] to Null, so it fails.
But HOW TO GET ROUND THIS?