User grid has a check box to select records to process. I would like to return to the next record to process after the user has processed records that have been checked.
This is the idea I've tried 1. Keep track of where user stops - via the key for table - Invoice No. 2. Prior to processing list, skip a record - get that invoice number, store it - lnInvNo 3. process the data and do a tableupdate of underlying view(data source for grid) (this does not fail) 4. do a seek(lnInvNo,'DISPATCH','INVOICENO') where dispatch is name of view, and invoiceno is an index created when form loads on grid. 5. Setfocus to the grids, first column first textbox. i.e. thisform.cgrid1.column1.text1.setfocus() However when this is done, the grid gets the focus and not at the record selected above, but at the top of the grid. I have confirmed the above: the seek returns to the right record. Yet once the grid gets focus, it goes to the top (aaarrggghhh!) I have tried the following: Added a property to the grid to hold the lnInvNo In the gotfocus event of the textbox in column1, I added code to check the value of the lnInvNo and do the seek above. Again it appears to find the right record, yet the grid goes to the first record. I also have added grid refreshes, form refreshes etc to no avail. Also weird behaivour of grid in debugger. If debugger is on, I cannot select any record at all. Clicking anywhere on the grid goes to the BOTTTOM (go figure) of the grid and stays there. Any ideas about what is going on? TIA, Mike -------------------------------------------------------------------- This mail sent through WebMail | Courtesy of Execulink _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

