Damn. I am stumped. Let's hope someone else jumps in.
>All the code is in a prg by it self and if I run the prg several times no C5 error occours.
>
>>If you put this code into a prg by itself then run it several times against the table (outside of your app) does it still cause a C5 error?
>>
>>>I have a bit more information on this. In the forms load event it executed a prg than created some cursors.
>>>
>>>If I commented out the following lines
>>>
>>>
>>>ALTER TABLE OpenPm ;
>>> ALTER COLUMN HrsLeft NULL
>>>
>>>or set the forms datasession to private the error no longer happens. I can run the form, close it, and run it again as many times as I want. Where before the second time i ran the form the C0000005 error would happen. I don't know if this will help anyone else with this.