I think that the question
Originally Posted by
John_G
...What data (i.e. controls) do you use to link the subform to the main form...
is important because your statement
Originally Posted by
rui_parente
...When I use the code that contains the Me.Refresh part the data in the subform erases...
suggests that you're changing a value on the Main Form that is used to relate the Main Form/Subform Records...when it changes there is no longer a related Record in the Subform, hence the 'erasing' of data in the Subform.
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007