Hi:
Question regarding use of SQL cursor. . .
have a "MainData.dbf" and "Products.dbf" both in "Contact.dbc".
have a ProdFrm.frm with a grid on it of active "Products.dbf" with a column btn on it called "GO" which is a click event for the record choosen.
The "GO" Btn builds the SQL Cursor called "CurChoice" which is "ReadWrite" and which picks the serveral thousand records
of the "MainData.dbf" requested (Browses correctly). The Go btn opens the next form "ActiveProduct.frm" as modal and gives the results requested correctly. Upon Exiting the "ActiveProduct.frm" back to the "ProdFrm", would like to "dismiss" or close out or release the "SQL cursor" and chose next record and open the new SQL.
My question is: How do I start with a "clean" SQL cursor with each record choice of my "ProdFrm"?
(. . .each click of "Go btn" stacks up the cursor and becomes "very slow". . .even tho correct with each. . )
Any feedback would be deeply apprecited.
THX
Mike
Question regarding use of SQL cursor. . .
have a "MainData.dbf" and "Products.dbf" both in "Contact.dbc".
have a ProdFrm.frm with a grid on it of active "Products.dbf" with a column btn on it called "GO" which is a click event for the record choosen.
The "GO" Btn builds the SQL Cursor called "CurChoice" which is "ReadWrite" and which picks the serveral thousand records
of the "MainData.dbf" requested (Browses correctly). The Go btn opens the next form "ActiveProduct.frm" as modal and gives the results requested correctly. Upon Exiting the "ActiveProduct.frm" back to the "ProdFrm", would like to "dismiss" or close out or release the "SQL cursor" and chose next record and open the new SQL.
My question is: How do I start with a "clean" SQL cursor with each record choice of my "ProdFrm"?
(. . .each click of "Go btn" stacks up the cursor and becomes "very slow". . .even tho correct with each. . )
Any feedback would be deeply apprecited.
THX
Mike