More:
I've set frmZoom to open Modal, which prevents it from being left open
and causing the code to complain.. I've created a global variable
(strZoomBoxText ) that is set when frmZoom is closed and = frmZooms
text entry. When the originating form calls the zoom routine, the
final line sets/resets the controls text to frmZoom's value. It seems
the code(cc2_DblClick) is 'waiting' for frmZoom to close before it can
finish.
Private Sub cc2_DblClick(Cancel As Integer)
'
http://groups.google.com/group/microsoft.public.access/
browse_thread/thread/41074288a51680ae?hl=en#
On Error GoTo cc2_DblClick_Error
' Initally, var below set to zero length.
strZoomBoxText = ""
If Me.Dirty Then Me.Dirty = False
If Len(Me.cc2 & vbNullString) > 0 Then
Zoomspace Me.ActiveControl
Me.cc2 = strZoomBoxText
End If
ExitHere:
Exit Sub
cc2_DblClick_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") " _
& "in procedure cc2_DblClick of VBA Document Form_frmDenial"
End Sub