>I was playing with keeping running totals of selected items in a grid, so I made a view that only pulled those records that have the "selected" field as .T. It works fine. Now, I'm wondering where the best place for this code is if I want to display it in a textbox on the same form as the grid so it is updated when the user selects or de-selects something. Initally, I had it in the refresh of the textbox, but this doesn't seem to work beause when the txtbox is refreshing for the first time the grid isn't available yet, etc. Does anyone have any thoughts on better ways to keep running totals in a textbox?
>
>Michael G. Emmons
When user selects/deselects something in grid he triggers some events. Depending how you arrange the interface it could be Click event of some button or just InteractiveChange for some Column.Textbox. So, put your code 'refreshing' textbox (I guess it's just Thisform.text1.value=...) into one of those events.
Edward Pikman
Independent Consultant