D
Design by Sue
I've posted this somewhere before but didn't get a reply so I will try to
reword it. I have a form (LocationFrm) with a subform (ReturnedSubFrm) that
is displayed as continuous form with a query as its record source. The query
concatenates the two primary keys into one field (Expr1) and also includes
PartNumber, Suffix(these are the concatenated fields), Line and Returned.
Line has a criteria set so that only the records that are in a particular
line are shown. The Returned is a yes/no check box. As each record desired
is selected by checking the box, I have a code that enters information in two
other fields on the original table (PartNumberTbl - on which the query above
is based) This all works exactly as I want it to EXCEPT!!! When the user
clicks on another record, the code is run and the info is added to the form
BUT a second dialog box comes up and states another user is using the form
(sorry but can't remember the exact wording) I diagnosed it and what is
happening is that when the user selects the 2nd record, Access is, through
the query adding the check box to the 1st records Returned check box. If I
click OK on this other user message box, not only does it add the check box,
it removes the info I added and corrupts the PartNumber and Suffix fields -
to the point that the only way to clean it up is to compact and repair the
database which removed the corrupted records.
Now my question is: is there any way to stop the action that Access is doing
to update the form when I go to the next record. I can build the change of
the Returned checkbox to yes in my on click code for the check box so that is
not an issue.
If I could just solve this problem I would have this project almost done!
Thanks as always for any help.
Sue
reword it. I have a form (LocationFrm) with a subform (ReturnedSubFrm) that
is displayed as continuous form with a query as its record source. The query
concatenates the two primary keys into one field (Expr1) and also includes
PartNumber, Suffix(these are the concatenated fields), Line and Returned.
Line has a criteria set so that only the records that are in a particular
line are shown. The Returned is a yes/no check box. As each record desired
is selected by checking the box, I have a code that enters information in two
other fields on the original table (PartNumberTbl - on which the query above
is based) This all works exactly as I want it to EXCEPT!!! When the user
clicks on another record, the code is run and the info is added to the form
BUT a second dialog box comes up and states another user is using the form
(sorry but can't remember the exact wording) I diagnosed it and what is
happening is that when the user selects the 2nd record, Access is, through
the query adding the check box to the 1st records Returned check box. If I
click OK on this other user message box, not only does it add the check box,
it removes the info I added and corrupts the PartNumber and Suffix fields -
to the point that the only way to clean it up is to compact and repair the
database which removed the corrupted records.
Now my question is: is there any way to stop the action that Access is doing
to update the form when I go to the next record. I can build the change of
the Returned checkbox to yes in my on click code for the check box so that is
not an issue.
If I could just solve this problem I would have this project almost done!
Thanks as always for any help.
Sue