Hi Everyone,
This is perhaps a slightly different take on the mouse scroll problem, which I'm aware that there are many links FAQs and what have you. My Favouritesfrm is based on a query, and to create new Favourites I click a button containing the following (not elegant nevertheless it works and clears the unbound controls in which the user enters new Favourites criteria):
This takes me to the new record, but ofcourse the mouse scroll can move away from it causing a record to be overwritten. I tried setting the DataEntry property to false within this code, and also within the Current event of the form, but then the error message indicates that the form is not recognised. I pursued this because, in the former case, I found it was possible to scroll records until I hit the new record and then the scroll locked. Is it not possible by definition to move to a new record and set Data Entry to false in the same context? Anyone's thoughts/criticisms would be valued.
Thank you in anticipation.
Ted.
This is perhaps a slightly different take on the mouse scroll problem, which I'm aware that there are many links FAQs and what have you. My Favouritesfrm is based on a query, and to create new Favourites I click a button containing the following (not elegant nevertheless it works and clears the unbound controls in which the user enters new Favourites criteria):
Code:
Private Sub Label47_Click()
Application.Echo False
DoCmd.Close acForm, "Favouritesfrm"
DoCmd.OpenForm "Favouritesfrm"
DoCmd.GoToRecord , , acNewRec
Forms!Favouritesfrm!FavouriteDetails.SetFocus
Application.Echo True
End Sub
Thank you in anticipation.
Ted.