D
deb
I get run-time error 2455 - invalid reference to the property form/report.
on the first IF portion.
The statement is on the Form_Unload
If ((Not IsNull
(Forms.fProject.f000Deliverable.Form.fTLNo.Form.f001WithinSiemens.Form.WSDateReceive)) Or _
(Not
IsNull(Forms.fProject.f000Deliverable.Form.fTLNo.Form.f002SiemensCustomer.Form.SCDateSent)))
And (Forms.fProject.f000Deliverable.Form.fTLNo.Form.TLNo = "TBD") Then
msg = "TL Number cannot be ""TBD"" if Sent or Received dates are
assigned." _
& vbCr & vbCr & "Select Ok to change TL Number" _
& vbCr & vbCr & "or Cancel to remove Sent/Received Dates in Within
Siemens and Siemens to Customer TABS."
ans = MsgBox(msg, vbOKCancel, "Attention")
If ans = vbOK Then
MsgBox "Please, enter correct TL Number."
Me.f000Deliverable.Form.fTLNo.Form.TLNo.SetFocus
Exit Sub
Else
MsgBox "If assigned, the Sent and Received Dates" _
& vbCr & vbCr & "on Within Siemens and Siemens to Customer TABS will
be removed.."
Me.f000Deliverable.Form.fTLNo.Form.f001WithinSiemens.Form.WSDateReceive = Null
Me.f000Deliverable.Form.fTLNo.Form.f002SiemensCustomer.Form.SCDateSent = Null
Exit Sub
End If
Else
End If
Please help...
on the first IF portion.
The statement is on the Form_Unload
If ((Not IsNull
(Forms.fProject.f000Deliverable.Form.fTLNo.Form.f001WithinSiemens.Form.WSDateReceive)) Or _
(Not
IsNull(Forms.fProject.f000Deliverable.Form.fTLNo.Form.f002SiemensCustomer.Form.SCDateSent)))
And (Forms.fProject.f000Deliverable.Form.fTLNo.Form.TLNo = "TBD") Then
msg = "TL Number cannot be ""TBD"" if Sent or Received dates are
assigned." _
& vbCr & vbCr & "Select Ok to change TL Number" _
& vbCr & vbCr & "or Cancel to remove Sent/Received Dates in Within
Siemens and Siemens to Customer TABS."
ans = MsgBox(msg, vbOKCancel, "Attention")
If ans = vbOK Then
MsgBox "Please, enter correct TL Number."
Me.f000Deliverable.Form.fTLNo.Form.TLNo.SetFocus
Exit Sub
Else
MsgBox "If assigned, the Sent and Received Dates" _
& vbCr & vbCr & "on Within Siemens and Siemens to Customer TABS will
be removed.."
Me.f000Deliverable.Form.fTLNo.Form.f001WithinSiemens.Form.WSDateReceive = Null
Me.f000Deliverable.Form.fTLNo.Form.f002SiemensCustomer.Form.SCDateSent = Null
Exit Sub
End If
Else
End If
Please help...