I have a frmOrders with a subfrmOrderDetails, currently set up so that the sub form is invisible if the main form has a null ID, so when the users open to a new record they can't jump straight into adding things to a non-existent OrderID.
The code for the form is
Private Sub Form_Current()
If Me.NewRecord = False Then
Me.Order_Details_Subform.Visible = True
Else
Me.Order_Details_Subform.Visible = False
End If
End Sub
Private Sub OrderID_AfterUpdate()
If Me.MyCombo <> "" Then
Me.Order_Details_Subform.Visible = True
End If
End Sub
What I would like is the sub form to refresh and become visible as soon as an ID is created. Takers?
The code for the form is
Private Sub Form_Current()
If Me.NewRecord = False Then
Me.Order_Details_Subform.Visible = True
Else
Me.Order_Details_Subform.Visible = False
End If
End Sub
Private Sub OrderID_AfterUpdate()
If Me.MyCombo <> "" Then
Me.Order_Details_Subform.Visible = True
End If
End Sub
What I would like is the sub form to refresh and become visible as soon as an ID is created. Takers?