Hi. Not sure if I am explaining it correctly but...
I have a cross tab query with the results in a datasheet view style form. It has simple conditional formatting on some columns. If I double click a field on the datasheet I get a new form that I can use to update data (directly in the DB) that is displayed in the cross tab datasheet. On close of that data entry form I want to see the updated data (no additions, just value changes) displayed in the crosstab query.
I have tried using the Me.Form.Requery on my main datasheet and made the other form (TONY PRODUCT PERMS FORM) modal:
Private Sub Product_Reference_DblClick(Cancel As Integer)
Dim ProductRefText As String
ProductRefText = Me.Product_Reference.Value
DoCmd.OpenForm "TONY PRODUCT PERMS FORM", OpenArgs:=ProductRefText
Me.Form.Requery
End Sub
This seems to refresh the sheet before I have updated the data. It also puts the curser back to the top of the datasheet rather than the row I double clicked on.
The form can be closed by either the x on Top RHS or custom cancel or update button s. Ideally I would like the refresh to occur only when I use the "update and close" button in the data entry form.
Any ideas to be able to do this and retain the position in the datasheet form would be gratefully received. Many Thanks
Any help on getting the refresh to happen