Are you sure the error message comes from this line? "File access is denied" means that you are trying to write to a read only file, and that's not what you are trying to do. Do you need a read-write cursor?
>I keep getting a "file access is denied" error with this method. Not in the designer though... only after I have built the .exe.