That error happens then the datasource for a combo gets closed before the combo is destroyed.
>Hi everybody,
>
>I am getting the following error when I try to close the application
>
>OK
>Help
>Cannot access the selected table. csrCategory.
>
>---------------
>In the code I am setting combos RowSources to empty string before re-selecting their cursors.
>
>The error only occurs when I try to close the main application and only under certain scenario, but it is consistent.
>
>I am not sure how to debug it as it doesn't give the normal debug dialog.
>
>Any ideas?
>
>Thanks in advance.
>
>------------------------------------
>UPDATE. I changed code to use different cursor names and it seems to resolve the problem - I am unable to reproduce. Hopefully it's fixed now.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer