B
Beeyen
Good Day,
The following is what I attempting to accomplish but my coding is a bit at
fault. Would someone be so kind as to look over the coding based on the
information I have provide. I would appreciate it very much. When I select
yes or no I received a Runtime error 2427 “ You entered an expression that
has no value†or You tried to assign a Null value to a variable that is not
a variant data type.
For Routing Exceptions Handling
If I select yes it enters the current date/time in a field called
ExceptionHandling,
If I select no exceptions it enters a grayed out field in a field called
ExceptionResolved
For Routing Exceptions Resolved
If I select Resolved it enters the current date/time in a field called
ExceptionResolved
If I select NotResolved it enters text which says ‘Exception not Resolved’
NEXT TO ROUTING EXCEPTIONS HANDLING
Option Button – YESEXCEPTIONBUTTON
Data - Option Value = 1
Event – On Got Focus button is as follows:
Private Sub YESEXCEPTIONBUTTON_GotFocus()
If Me.YESEXCEPTIONBUTTON = True Then
Me.[ExceptionsHandling] = Now()
Else
Me.[ExceptionsHandling] = Now()
Me.[Exceptions_Resolved] = ""
Me.[Exceptions_Resolved].Enabled = True
End If
End Sub
Option Button - NOEXCEPTIONBUTTON
Data – Option Value = 2
Event – On Got Focus
Event Procedure
Private Sub NOEXCEPTIONBUTTON_GotFocus()
If Me.NOEXCEPTIONBUTTON = True Then
Me.[Exceptions_Resolved].BackColor = 12632256
Else
Me.[Exceptions_Resolved].BackColor = 16777215
End If
End Sub
Other (Name) = YESEXCEPTIONBUTTON
******************************
NEXT TO THE EXCEPTION RESOLVED FIELD
Option Button - YESRESOLVEDBUTTON
Data – Option Value = 1
Event – On Got Focus
Event Procedure
If Me.Exceptionsyesbutton = -1 Then
Me.[Exceptions_Resolved] = Now()
End If
End Sub
OTHER (NAME) = YESRESOLVEDBUTTON
The following is what I attempting to accomplish but my coding is a bit at
fault. Would someone be so kind as to look over the coding based on the
information I have provide. I would appreciate it very much. When I select
yes or no I received a Runtime error 2427 “ You entered an expression that
has no value†or You tried to assign a Null value to a variable that is not
a variant data type.
For Routing Exceptions Handling
If I select yes it enters the current date/time in a field called
ExceptionHandling,
If I select no exceptions it enters a grayed out field in a field called
ExceptionResolved
For Routing Exceptions Resolved
If I select Resolved it enters the current date/time in a field called
ExceptionResolved
If I select NotResolved it enters text which says ‘Exception not Resolved’
NEXT TO ROUTING EXCEPTIONS HANDLING
Option Button – YESEXCEPTIONBUTTON
Data - Option Value = 1
Event – On Got Focus button is as follows:
Private Sub YESEXCEPTIONBUTTON_GotFocus()
If Me.YESEXCEPTIONBUTTON = True Then
Me.[ExceptionsHandling] = Now()
Else
Me.[ExceptionsHandling] = Now()
Me.[Exceptions_Resolved] = ""
Me.[Exceptions_Resolved].Enabled = True
End If
End Sub
Option Button - NOEXCEPTIONBUTTON
Data – Option Value = 2
Event – On Got Focus
Event Procedure
Private Sub NOEXCEPTIONBUTTON_GotFocus()
If Me.NOEXCEPTIONBUTTON = True Then
Me.[Exceptions_Resolved].BackColor = 12632256
Else
Me.[Exceptions_Resolved].BackColor = 16777215
End If
End Sub
Other (Name) = YESEXCEPTIONBUTTON
******************************
NEXT TO THE EXCEPTION RESOLVED FIELD
Option Button - YESRESOLVEDBUTTON
Data – Option Value = 1
Event – On Got Focus
Event Procedure
If Me.Exceptionsyesbutton = -1 Then
Me.[Exceptions_Resolved] = Now()
End If
End Sub
OTHER (NAME) = YESRESOLVEDBUTTON