Thank you for your response. I have indeed checked under the Windows menu item and the database that should be open is not listed. Here's a few examples with code plus a screen capture of the folder with database files to show spelling.
3rd example - This one I have tried with and without the .pan extension on the saved database file and in the code. I can generate a "File 'Counties' not found" message using the code below... but that makes sense. It's looking for a file with no extension and can't find it.
4th example - This one let's me select and Choose the database file but nothing happens.
if fileName="" stop endif ; user pressed cancel
5th example - Using error checking. It only generates an input field if I purposely mistype "Counties.pan" Otherwise, it seems to execute normally but nothing happens.
gettext "Enter the file name",txFileName
if txFileName="" stop endif