Hi all,
I have the following code: -
Private Sub Command58_Click()
' COMMENT If the "completion_date" is null open form "frmCompletion_date'
If IsNull(completion_date) Then
DoCmd.OpenForm "frmCompletedDate"
'COMMENT if the "completion_date" has date then check if "Combo54 is set to "yes" or "No" if No'
Else
If (Comb054) = "No" Then
DoCmd.OpenReport "rptInvoice"
DoCmd.Close
Else
'COMMENT if Yes'
If (Comb054) = "Yes" Then
DoCmd.OpenForm "frmDifferentShippingAdd", , , , acFormAdd
End If
End If
End If
End Sub
What I am trying to do is test if the "completion_date" has data, If no then open the "frmCompletion_date" form.
If yes the move on and check the "Combo54", if it is set to "No" the open "rptInvoice" report but if set to "Yes" do not open "rptInvoice" but move to and open the "frmDifferentShippingAdd" form.
I have been playing with this for hours.
Can anyone advise please.
Kind regards
I have the following code: -
Private Sub Command58_Click()
' COMMENT If the "completion_date" is null open form "frmCompletion_date'
If IsNull(completion_date) Then
DoCmd.OpenForm "frmCompletedDate"
'COMMENT if the "completion_date" has date then check if "Combo54 is set to "yes" or "No" if No'
Else
If (Comb054) = "No" Then
DoCmd.OpenReport "rptInvoice"
DoCmd.Close
Else
'COMMENT if Yes'
If (Comb054) = "Yes" Then
DoCmd.OpenForm "frmDifferentShippingAdd", , , , acFormAdd
End If
End If
End If
End Sub
What I am trying to do is test if the "completion_date" has data, If no then open the "frmCompletion_date" form.
If yes the move on and check the "Combo54", if it is set to "No" the open "rptInvoice" report but if set to "Yes" do not open "rptInvoice" but move to and open the "frmDifferentShippingAdd" form.
I have been playing with this for hours.
Can anyone advise please.
Kind regards