I have cboCombo1 that cascades to cboCombo2 wich then cascades approved values to cboCascade3.
The database is used by at most 3 people at one time and is located on a shared drive. I have recently got complaints that the cboCombo3 triggers an error AFTER a selection is made. (This means that the me.requery from cboCombo1 and cboCombo2 are not triggering this error.) The user complaint did not provide the error code. Sorry for not posting that. All i know is after the user acknowledges the error by hitting end or debug the record value selected is still committed to the table. Should I just make error handling code for this control that forces resume on error; that just seem sloppy.
After running a compact / repair operation the error is not duplicable but then will surface after a few more hours of database usage.
Is my if statement making any sense? I need to make sure the form saves so a calculated subform will update. That is the only reason why i included the if me.dirty in the update code. Is there a better way to update the subform containing calculations instead of making other form controls constantly save if they are dirty?
Code error:
Why does compacting and repair only solve problem for short duration of time?
Would this be avoided by splitting the database?
Why would only one user experience this error if more than one person is accessing the file at once?
I sincerely appreciate your feedback,
DevTK
The database is used by at most 3 people at one time and is located on a shared drive. I have recently got complaints that the cboCombo3 triggers an error AFTER a selection is made. (This means that the me.requery from cboCombo1 and cboCombo2 are not triggering this error.) The user complaint did not provide the error code. Sorry for not posting that. All i know is after the user acknowledges the error by hitting end or debug the record value selected is still committed to the table. Should I just make error handling code for this control that forces resume on error; that just seem sloppy.
After running a compact / repair operation the error is not duplicable but then will surface after a few more hours of database usage.
Is my if statement making any sense? I need to make sure the form saves so a calculated subform will update. That is the only reason why i included the if me.dirty in the update code. Is there a better way to update the subform containing calculations instead of making other form controls constantly save if they are dirty?
Code error:
Code:
Private sub cboCombo3 _afterupdate()
If me.dirty then docmd.save ' calculated sub form needs this code so it will update
docmd.requery "[cboCombo1]" ' i read that requerying the Parent combo boxes is neccesary for the cascade to work
docmd.requery "[cboCombo2]"
end if
end sub
Why does compacting and repair only solve problem for short duration of time?
Would this be avoided by splitting the database?
Why would only one user experience this error if more than one person is accessing the file at once?
I sincerely appreciate your feedback,
DevTK