R
Rob
Hello All,
I am having problem with my database. I have an Access front end
and SQL back end. I have a main form that creates a record with some data
and a subform that allows the user the create multiple records in another
table that coinsides with the main form data. I have a button that allows
the user to add a new record to the subform and when the button is clicked it
takes the primary key data from a field in the main form and copies it to the
same field in the subform to create the link. In SQL I made sure that the
subform had an int field that was incremented to keep from creating a
duplicate (this allows the user to create mutliple records on the subform
that link to the one record on the main form).
I have not created any relationships in Access since I tell the subform to
take the main forms' key field data to create the link. I am getting two
errors:
Invalid Use of Null
Write Conflict
The Microsoft Jet Database stopped the process because you and another user
are attempting to change the same data at the same time
The last one shows up if I try to manually delete the record from the table
in Access.
There is no one else in the database since I am testing it right now. I can
go back to SQL and delete or edit the record in question. Just not through
Access. I am not sure what to do since there is not invalid use of null - I
have determined that the key field data is being copied. The record will
save if I tell the write conflict to drop changes and the key field data is
there from the main forms' data.
Any suggestions would be greatly appreciated.
I am having problem with my database. I have an Access front end
and SQL back end. I have a main form that creates a record with some data
and a subform that allows the user the create multiple records in another
table that coinsides with the main form data. I have a button that allows
the user to add a new record to the subform and when the button is clicked it
takes the primary key data from a field in the main form and copies it to the
same field in the subform to create the link. In SQL I made sure that the
subform had an int field that was incremented to keep from creating a
duplicate (this allows the user to create mutliple records on the subform
that link to the one record on the main form).
I have not created any relationships in Access since I tell the subform to
take the main forms' key field data to create the link. I am getting two
errors:
Invalid Use of Null
Write Conflict
The Microsoft Jet Database stopped the process because you and another user
are attempting to change the same data at the same time
The last one shows up if I try to manually delete the record from the table
in Access.
There is no one else in the database since I am testing it right now. I can
go back to SQL and delete or edit the record in question. Just not through
Access. I am not sure what to do since there is not invalid use of null - I
have determined that the key field data is being copied. The record will
save if I tell the write conflict to drop changes and the key field data is
there from the main forms' data.
Any suggestions would be greatly appreciated.