G
Guest
I have a report that has is grouped into an employee and then by weeks and
then there daily production, information comes from a query. I have unbound
form that has a listbox which groups the employees information into
weeks(since there production is entered daily) The following code is in the
event prodcedure of the listbox
***********************************************************
Private Sub List4_DblClick(Cancel As Integer)
On Error GoTo Err_List4_DblClick
Dim DocName As String
DocName = "Daily Employee tracking"
DoCmd.OpenReport DocName, acPreview, , "[weeks]=' " &
Forms![WeeklyEmployee]![List4] & " ' "
Exit_List4_DblClick:
Exit Sub
Err_List4_DblClick:
MsgBox Err.Description
Resume Exit_List4_DblClick
End Sub
**********************************************************
The problem is that when I double click the row that I want (displays the
week number e.g., 32) , I get a message that says no records(this is an event
procedure in the no data--- msgbox comes up with no records) but there are
records, if I take out the single quotes, I get data type mismatch.
Any help on how to take care of this!
Please help!
then there daily production, information comes from a query. I have unbound
form that has a listbox which groups the employees information into
weeks(since there production is entered daily) The following code is in the
event prodcedure of the listbox
***********************************************************
Private Sub List4_DblClick(Cancel As Integer)
On Error GoTo Err_List4_DblClick
Dim DocName As String
DocName = "Daily Employee tracking"
DoCmd.OpenReport DocName, acPreview, , "[weeks]=' " &
Forms![WeeklyEmployee]![List4] & " ' "
Exit_List4_DblClick:
Exit Sub
Err_List4_DblClick:
MsgBox Err.Description
Resume Exit_List4_DblClick
End Sub
**********************************************************
The problem is that when I double click the row that I want (displays the
week number e.g., 32) , I get a message that says no records(this is an event
procedure in the no data--- msgbox comes up with no records) but there are
records, if I take out the single quotes, I get data type mismatch.
Any help on how to take care of this!
Please help!