Private Sub CreateNewItem_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Customers Create Item"
If Me.CustomerID <> "" Then
stLinkCriteria = "[CustomerID]=" & Me![CustomerID]
DoCmd.OpenForm stDocName, , , stLinkCriteria ', acReadOnly
DoCmd.RunCommand acCmdRecordsGoToNew
Else
MsgBox ("You must select a Customer to create a new item")
End If
End Sub