J
Joe Williams
I have an access 2003 database with an SQL backend.
I have a form based on a table, with a combo box in the form header for the
user to select the specific record they want to jump to. Works fine with no
problems. I then added a COPY record button using the access wizard so the
user could duplicate the record and save with only changing a couple fields.
Whenc licking COPY, I receive a nice long error message as follows:
Run Time Error '3146' ODBC -- Call Failed [Microsoft][ODBC SQL Server
Drive][SQL Server]Cannot insert the value NULL into column 'Last Update',
table 'ElmoreData.dbo.PROCESS1530'; column does not allow nulls. INSERT
fails. (#515) [Microsoft][ODBC SQL Server Drive][SQL Server]The statement
has been terminated. (#3621)
The options then are END or DEBUG.
Now, several issues. 1) I know that the data being copied contains no NULL
values prior to clicking COPY. 2) If I just click END the data seems to copy
correctly, so why the error? 3) If I remove the combo box from the form
header, the problem goes away and the record copies fine.
Can anyone tell me why adding the combo box into the form header would make
the COPY button code fail?
I have experimented with changing the rs.findfirst method to the
docmd.findrecord methods with the same results.
Can anyone offer any advice?
Thanks
Joe
I have a form based on a table, with a combo box in the form header for the
user to select the specific record they want to jump to. Works fine with no
problems. I then added a COPY record button using the access wizard so the
user could duplicate the record and save with only changing a couple fields.
Whenc licking COPY, I receive a nice long error message as follows:
Run Time Error '3146' ODBC -- Call Failed [Microsoft][ODBC SQL Server
Drive][SQL Server]Cannot insert the value NULL into column 'Last Update',
table 'ElmoreData.dbo.PROCESS1530'; column does not allow nulls. INSERT
fails. (#515) [Microsoft][ODBC SQL Server Drive][SQL Server]The statement
has been terminated. (#3621)
The options then are END or DEBUG.
Now, several issues. 1) I know that the data being copied contains no NULL
values prior to clicking COPY. 2) If I just click END the data seems to copy
correctly, so why the error? 3) If I remove the combo box from the form
header, the problem goes away and the record copies fine.
Can anyone tell me why adding the combo box into the form header would make
the COPY button code fail?
I have experimented with changing the rs.findfirst method to the
docmd.findrecord methods with the same results.
Can anyone offer any advice?
Thanks
Joe