I have a form that when a Close Form button is selected runs several checks on the information that was entered. From these checks an "exception" message box is generated that lists the records and the type of problem. This works as it should but at times there are so many "exceptions" that the message box extends past the right side of the monitor. Is there a way to have 20 (or any number of) exceptions listed then create a new line for the next group? The idea is to get the box to extend downward.
I would appreciate any ideas.
Here is some of the code used.
rst.FindFirst "Unit ='" & (Rstb!Unit) & "'"
If rst.NoMatch Then
Record = (Rstb!ID)
If Check2 = "" Then
Check2 = Record
Else
Check2 = Check2 & "," & Record
End If
Message2 = "The Following Records Have Unit Numbers Not Listed In The Equipment Table:" & Check2 & "."
If Check2 <> "" Then
Response = MsgBox(Message2, vbOKOnly)
If Response = vbOK Then Counter = 1
End If
I would appreciate any ideas.
Here is some of the code used.
rst.FindFirst "Unit ='" & (Rstb!Unit) & "'"
If rst.NoMatch Then
Record = (Rstb!ID)
If Check2 = "" Then
Check2 = Record
Else
Check2 = Check2 & "," & Record
End If
Message2 = "The Following Records Have Unit Numbers Not Listed In The Equipment Table:" & Check2 & "."
If Check2 <> "" Then
Response = MsgBox(Message2, vbOKOnly)
If Response = vbOK Then Counter = 1
End If