S
Steve Moss
I have a form with a combobox giving the options of a list of people
"Custodian". On update I wish for the option selected to be used to open a
report with filtered information. the report is a full list of books held by
everybody in my company. instead of writing a query and report for each
person (this an ever expanding list) I wish it to be filtered. I have used
the folloowing code in the past, buit for some reason the report opens blank
(only with headings). I am not sure what each part of the code represents,
can anyone shed light on this for me
Private Sub Combo0_AfterUpdate()
If Len(Trim(Me![Combo0]) & "") > 0 Then
DoCmd.OpenReport "Reportname", acViewPreview, , "[nameofpersonfield]='" &
Me![Combo0].Value & "'"
Else
MsgBox "Enter which person's holdings you require to view"
End If
End Sub
"Custodian". On update I wish for the option selected to be used to open a
report with filtered information. the report is a full list of books held by
everybody in my company. instead of writing a query and report for each
person (this an ever expanding list) I wish it to be filtered. I have used
the folloowing code in the past, buit for some reason the report opens blank
(only with headings). I am not sure what each part of the code represents,
can anyone shed light on this for me
Private Sub Combo0_AfterUpdate()
If Len(Trim(Me![Combo0]) & "") > 0 Then
DoCmd.OpenReport "Reportname", acViewPreview, , "[nameofpersonfield]='" &
Me![Combo0].Value & "'"
Else
MsgBox "Enter which person's holdings you require to view"
End If
End Sub