Hi,
I'm working on this project using VFP 6.0. I have this form form A. In this form they type in a customer name and populates grid with info on any customer that has that name. They select the correct customer and address out of the grid.
Next they click the ticket button and it does an SQL insert into the proper table with that information(info is not whole) then it releases Form A and brings up Form B so that the rest of the info can be entered.
Ok, here is the problem. In designer mode Everything goes corect. In the exe form I get an error as soon as I click on the ticket button. Error states that it can not update currsor. Then it gives a name of a table that is not even in use. No I did not have this table open. In the datasession it opens the cursor that I created from my select statements. A session called Unknown is open and the release datasession is not working.
However if I use the release all or the close all. The datasession will clear, but then when Form B opens it can not find any tables or even point to the insert.
How can I manually in my code tell it to close the datasessions that I want it to close and still allow the ones that I want to open to oen.
Larry
I'm working on this project using VFP 6.0. I have this form form A. In this form they type in a customer name and populates grid with info on any customer that has that name. They select the correct customer and address out of the grid.
Next they click the ticket button and it does an SQL insert into the proper table with that information(info is not whole) then it releases Form A and brings up Form B so that the rest of the info can be entered.
Ok, here is the problem. In designer mode Everything goes corect. In the exe form I get an error as soon as I click on the ticket button. Error states that it can not update currsor. Then it gives a name of a table that is not even in use. No I did not have this table open. In the datasession it opens the cursor that I created from my select statements. A session called Unknown is open and the release datasession is not working.
However if I use the release all or the close all. The datasession will clear, but then when Form B opens it can not find any tables or even point to the insert.
How can I manually in my code tell it to close the datasessions that I want it to close and still allow the ones that I want to open to oen.
Larry