stanmurphy
Technical User
- Oct 14, 2000
- 89
I am using a
SQL generated cursor to populate a cursor with all the appointments for a particular client from an Appointment table. Then I open a form and display the grid with the Recordsource set to the cursor. The fields displayed are clientid, apptdate, and appttime (for Client ID, Appointment Date and Appointment Time).
After the user selects a field in a particular row (a single appointment) they will then click a SELECT button on the screen. The SELECT button's click event should use the values displayed in the grid row to do a SEEK in a table (the same Appointment table used to populate the cursor for the grid) and open another form to display the details for that appointment.
How do I reference the values for the fields in the particular selected grid row so that I can use them in the SEEK?
For instance, if the grid displayed 10 rows and the user clicked on a field in the 3rd row, how would I capture the values of the fields in that row?
Thanks for reading this
After the user selects a field in a particular row (a single appointment) they will then click a SELECT button on the screen. The SELECT button's click event should use the values displayed in the grid row to do a SEEK in a table (the same Appointment table used to populate the cursor for the grid) and open another form to display the details for that appointment.
How do I reference the values for the fields in the particular selected grid row so that I can use them in the SEEK?
For instance, if the grid displayed 10 rows and the user clicked on a field in the 3rd row, how would I capture the values of the fields in that row?
Thanks for reading this