Thank you for reading,
I have a front-end in MS Access 2013 linked to a SQL in SharePoint.
I have a table "tbl_Pipeline" in SQL Server connected to the front-end with read-write permission. When a new record is created it works well. The problem comes when I want to quit the process without committing the record.
The fields are:
tbl_Pipeline.ID (auto-number)
tbl_Pipeline.date (default date())
tbl_Pipeline.Description (short text)
tbl_Pipeline.amount (floating)
If the user tries to leave the process (e.g. going to a previous record), it displays the following msg:
OBDC--call failed.
[Microsoft][SQL Server Native Client 11.0]Cannot insert the value NULL into column 'Description', table 'XXXX.tbl_Pipeline';column does not allow nulls.INSERT fails.(#515)[Microsoft][SQL Server Native Client 11.0][SQL Server]The statement has been terminated.(#3621).
I assume the errors is happening because the remote table is somehow receiving data (default values), then when the user leaves without completing the entry the NULL error comes up.
I want to catch the error before it pops up so that I can handle it, but since it's not on the MS Access side I don't "see" it (errors.count gives zero).
I'll appreciate all suggestions because I've exhausted my ideas.
Thank you
Leonel
I have a front-end in MS Access 2013 linked to a SQL in SharePoint.
I have a table "tbl_Pipeline" in SQL Server connected to the front-end with read-write permission. When a new record is created it works well. The problem comes when I want to quit the process without committing the record.
The fields are:
tbl_Pipeline.ID (auto-number)
tbl_Pipeline.date (default date())
tbl_Pipeline.Description (short text)
tbl_Pipeline.amount (floating)
If the user tries to leave the process (e.g. going to a previous record), it displays the following msg:
OBDC--call failed.
[Microsoft][SQL Server Native Client 11.0]Cannot insert the value NULL into column 'Description', table 'XXXX.tbl_Pipeline';column does not allow nulls.INSERT fails.(#515)[Microsoft][SQL Server Native Client 11.0][SQL Server]The statement has been terminated.(#3621).
I assume the errors is happening because the remote table is somehow receiving data (default values), then when the user leaves without completing the entry the NULL error comes up.
I want to catch the error before it pops up so that I can handle it, but since it's not on the MS Access side I don't "see" it (errors.count gives zero).
I'll appreciate all suggestions because I've exhausted my ideas.
Thank you
Leonel