A
accesskastle
Hi-
I have two forms. One is a datasheet view, the other a single form view, of
pretty much the same data. When a user double-clicks a field in the
datasheet view, the idea is that it will go to the single form with tabs,
allowing the user to see all the data in a much more user friendly display.
However, the first time I click on the field, the form flashes continuously
until I CTRL+ALT+DEL to start the Windows Task manager to break the process.
Once I do this, everytime after, I don't experience the problem.
I tried inserting Debug.Print statements to find out where it's going wrong,
but it passes them all, with no error message:
Private Sub Click_below_DblClick(Cancel As Integer)
On Error GoTo Err_Click_below
Debug.Print "Executing double-click..."
RefreshAll
Debug.Print "refreshed..."
If Len(GISEventID) = 20 Then
DoCmd.Echo False
DoCmd.OpenForm "frmEventLogTab", acNormal, , "[EventID] = " &
Forms!frmEventLog_tb!EventLogID
Debug.Print "Opened tab form..."
Forms!frmEventLog_tb.SetFocus
Debug.Print "Setfocus..."
DoCmd.Minimize
DoCmd.Echo True
'Debug.Print "minimized...complete."
Else
MsgBox "Sorry! You must enter information before proceeding to tab view."
Debug.Print "no info..."
Cancel = True
Debug.Print "cancel=true"
End If
Exit_Click_below:
Exit Sub
Err_Click_below:
MsgBox Err.Number & " " & Err.Description
End Sub
Anyone got any ideas how to stop this problem?
I have two forms. One is a datasheet view, the other a single form view, of
pretty much the same data. When a user double-clicks a field in the
datasheet view, the idea is that it will go to the single form with tabs,
allowing the user to see all the data in a much more user friendly display.
However, the first time I click on the field, the form flashes continuously
until I CTRL+ALT+DEL to start the Windows Task manager to break the process.
Once I do this, everytime after, I don't experience the problem.
I tried inserting Debug.Print statements to find out where it's going wrong,
but it passes them all, with no error message:
Private Sub Click_below_DblClick(Cancel As Integer)
On Error GoTo Err_Click_below
Debug.Print "Executing double-click..."
RefreshAll
Debug.Print "refreshed..."
If Len(GISEventID) = 20 Then
DoCmd.Echo False
DoCmd.OpenForm "frmEventLogTab", acNormal, , "[EventID] = " &
Forms!frmEventLog_tb!EventLogID
Debug.Print "Opened tab form..."
Forms!frmEventLog_tb.SetFocus
Debug.Print "Setfocus..."
DoCmd.Minimize
DoCmd.Echo True
'Debug.Print "minimized...complete."
Else
MsgBox "Sorry! You must enter information before proceeding to tab view."
Debug.Print "no info..."
Cancel = True
Debug.Print "cancel=true"
End If
Exit_Click_below:
Exit Sub
Err_Click_below:
MsgBox Err.Number & " " & Err.Description
End Sub
Anyone got any ideas how to stop this problem?