Hi guys
Hopefully this is the right place to put this
I have an issue with the dblclick event not firing immediately from my listbox. It does eventually fire if i mash the mouse button for long enough but obviously that is not an acceptable solution.The listbox also has an afterupdate event which is what fires when i double click
I have also tried calling the code from an onclick command button which works fine but if i try and call that from the dblclick event it does not
I have used the dblclick event in other projects with afterupdate and it has worked without problem so im a bit stumped on this one
Hoping someone can help. Thanks in advance
Hopefully this is the right place to put this
I have an issue with the dblclick event not firing immediately from my listbox. It does eventually fire if i mash the mouse button for long enough but obviously that is not an acceptable solution.The listbox also has an afterupdate event which is what fires when i double click
I have also tried calling the code from an onclick command button which works fine but if i try and call that from the dblclick event it does not
I have used the dblclick event in other projects with afterupdate and it has worked without problem so im a bit stumped on this one
Hoping someone can help. Thanks in advance
Code:
Private Sub lstFileList_AfterUpdate()
strPDF = Me.lstFileList.Column(0)
Me.PDFViewer.LoadFile (strPDF)
Dim fso As New FileSystemObject
strFileName = fso.GetFileName(strPDF)
Me.txtDate = Now
Me.txtUser = glblUser
Me.txtFile = strFileName
Me.txtAB = ""
End Sub
Code:
Private Sub lstFileList_dblClick(Cancel As Integer)
On Error GoTo Err_cmdDblClick
If checkNull(Me.lstFileList) = False Then
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmRej"
DoCmd.OpenForm stDocName, , , stLinkCriteria
If Me.Dirty Then Me.Dirty = False
DoCmd.Close acForm, Me.Name
End If
Exit_Err_cmdDblClick:
Exit Sub
Err_cmdDblClick:
MsgBox Err.Description
Resume Exit_Err_cmdDblClick
End Sub