Hi Al,
Please forgive my poor knowledge of Access, I tried the way you gave, but it
didn't work,the CategoryResults is the query result of the CategoryForm, I
created the queries when category = Organizaiton/government/others, the
result is the CategoryResults form with a button 'Preview Report', I hope
each time after get the result of the query, when click the button, relevent
report will appear, that's why I need the value fromthe CategoryForm.I did as
below:
Select Case Form!CategoryResults!optChoose
' opt1
Case 1
stDocName = "Non-profitOrganization"
DoCmd.OpenReport stDocName, acPreview
'opt2
Case 2
stDocName = "Government"
DoCmd.OpenReport stDocName, acPreview
'opt3
Case 3
stDocName = "Others"
DoCmd.OpenReport stDocName, acPreview
Case Else
End Select
it doesn't work, could you help me figure it out? Thank you.