mor10
Member
- Local time
- Yesterday, 18:50
- Joined
- Feb 15, 2016
- Messages
- 37
I occasionally get customers reporting the error "The expression you entered has a field, control, or property name that ... can't find" on line 2568. This is the Unload event for the form "Workorders", where I confirm if the record exist, before it continues down the event code or exits the event.
This indicates to me that the form is no longer loaded when it comes to this step. On the other hand, an error report the system generates reports that the form is open. I have never been able to replicate this error, so I wondered if this is something others have seen?
Private Sub Form_Unload(Cancel As Integer)
Dim I As Integer
Dim newword As String
Dim CheckWord As String
Dim WorkorderID As Long
2566 On Error GoTo HandleErr
2567 DoCmd.Echo False
2568 If Nz(Forms!Workorders!WorkorderID, 0) = 0 Then
2569 GoTo ExitHere
2570 Else
2571 WorkorderID = Forms!Workorders!WorkorderID
2572 End If
This indicates to me that the form is no longer loaded when it comes to this step. On the other hand, an error report the system generates reports that the form is open. I have never been able to replicate this error, so I wondered if this is something others have seen?
Private Sub Form_Unload(Cancel As Integer)
Dim I As Integer
Dim newword As String
Dim CheckWord As String
Dim WorkorderID As Long
2566 On Error GoTo HandleErr
2567 DoCmd.Echo False
2568 If Nz(Forms!Workorders!WorkorderID, 0) = 0 Then
2569 GoTo ExitHere
2570 Else
2571 WorkorderID = Forms!Workorders!WorkorderID
2572 End If