var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: error 2501
What do I need to add to this code to prevent the error handling from also suppressing the msg that i DO want to appear (msgbox "please...)
Private Sub Form_Unload(Cancel As Integer)
On Error GoTo ErrorHandler
If Me.Text86 = "J" And IsNull(cboDA.Column(1)) Then
MsgBox "Please Enter The Juvenile's Current Dorm Assignment, or select 'Unknown'."
Cancel = True
If Err.Number = 2501 Then
if you don't care what the error is, replace On Error GoTo ErrorHandler with On Error Resume Next.
i do care.. i want: MsgBox "Please Enter The Juvenile's Current Dorm Assignment, or select 'Unknown'." to show, but not the Access generated msg "The Close action was cancelled." that follows.
ok, I hope I'm not steering down the wrong path, but here's another thing to try:
Cancel = true
This should toggle off Access msgs while you cancel the event and then toggle them back on. Good luck.
just tried it--it didn't work. sorry.