General information
Title:
Grids Views DblClick AfterRowColChange
*---------------------------------------
I have 2 questions today...
and I think they are the same 2 questions that we all have...
1. Why'd it happen?
2. What can I do to get it to work as I thought it should?
I have a form with a pageform on it.
the 2nd page has a grid.
The grid has a memo field.
When I double click on the memo field it takes me to another form to process the writeup associated with the memo field.
The problem I am having is that I recently added a call to my save routine just before my call to the other form. The save routine is apparently leaving me on the last record of my view, and as a result my second form is opening up to the memo of that last record instead of the record that I performed the double click on.
I'm a little baffled for a couple reasons.
1. I get the current record info, including it's KEY value.
2. I pass these values into the second form for it to default to the desired record.
3. The grid has AfterRowColChange code and I now call that at the top of my dblclick event, just in case it doesn't fire if I'm on record X and double click on record Y
4. before the call to the save routine I save the current recno() of the view the grid is based on...I call the save routine...I reset the view's record pointer after the save is done...then I call the second form.
BTW - it works in the debugger but not at run-time
Any help would be appreciated.
TIA,
Rick Liebespach
*---------------------------------------
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only