G
Guest
I have an unbound form with an unbound listbox. The listbox is pulling infor
from a query that reads as follows
SELECT weeklytest.Week, weeklytest.Dayweek FROM weeklytest;
The out put is week # and the dates that that week represent.
I have an event procedure that if you double click the item in the listbox
its supposed to open the report Weekly team2 track.
the following is the code that I have in the event procedure for opening the
report but its opening all the records but I only want it to open for that
week that I selected.....
Private Sub List4_DblClick(Cancel As Integer)
On Error GoTo Err_List0_DblClick
Dim DocName As String
DocName = "Weekly team2 track"
DoCmd.OpenReport DocName, acPreview
Exit_List0_DblClick:
Exit Sub
Err_List0_DblClick:
MsgBox Err.Description
Resume Exit_List0_DblClick
End Sub
Please help!
from a query that reads as follows
SELECT weeklytest.Week, weeklytest.Dayweek FROM weeklytest;
The out put is week # and the dates that that week represent.
I have an event procedure that if you double click the item in the listbox
its supposed to open the report Weekly team2 track.
the following is the code that I have in the event procedure for opening the
report but its opening all the records but I only want it to open for that
week that I selected.....
Private Sub List4_DblClick(Cancel As Integer)
On Error GoTo Err_List0_DblClick
Dim DocName As String
DocName = "Weekly team2 track"
DoCmd.OpenReport DocName, acPreview
Exit_List0_DblClick:
Exit Sub
Err_List0_DblClick:
MsgBox Err.Description
Resume Exit_List0_DblClick
End Sub
Please help!