Hi,
I use a Select SQL statement to create a cursor and then use the cursor to populate a grid.
The grid is on a form that also has "Select" and Cancel" Buttons.
I put the following code in the DblClick event of the grid:
In the cmdClick() event, I select the work area and appropriate record based on the grid's return value and run another form.
If I click the grid and then the Select button, it works fine.
If I double click on a column in the grid, the work area changes to the cursor and then the form is run, resulting in errors.
Thanks for any insight,
Sam
I use a Select SQL statement to create a cursor and then use the cursor to populate a grid.
The grid is on a form that also has "Select" and Cancel" Buttons.
I put the following code in the DblClick event of the grid:
THISFORM.cmdSelect.CLICK()
In the cmdClick() event, I select the work area and appropriate record based on the grid's return value and run another form.
If I click the grid and then the Select button, it works fine.
If I double click on a column in the grid, the work area changes to the cursor and then the form is run, resulting in errors.
Thanks for any insight,
Sam