OK
To get to the code page of the form click the form you want and in the toolbar at the top, click the icon that has a square with a red a green and a yellow dots on it. If you hover over the icon it will say "Code" in the tooltip.
In the code page for form frmworkshop
scroll right to the end and paste this code there
-
Public Sub RefreshTheForm()
-
Me.Refresh
-
'You may need more code in here to perform other tasks
-
End Sub
-
you can actually paste the code anywhere on the code page but you must make sure you don't paste it inside another sub.
Now on the code page for the frmcustomer
scroll right to the end and paste this code there
-
Private Sub Form_Unload(Cancel As Integer)
-
Forms.frmworkshop.RefreshTheForm()
-
End Sub
-
Now when frmcustomer unloads (ie closes) it will execute the code in the second code block above. The code there calls the sub in the first code block which refreshes your form
Not trying to be rude but may I suggest, that if you want to create really good databases, open up the access help documents goto the contents tab and have a look at the visual basic conceptual topics. Try them out and experiment.
We are always here to help you over any sticky patches, but you need to get some of the basics down for you self and the help files are pretty good for that.