G
Guest
I have read some post that are related to the wherecondition but still can
get my problem solved. So here is my problem. I have a report that returns
all computers that have a given operating system. The user can select the OS
from a list box I can not get this to work. I keep getting a pop up asking
for the parameter. Here is my code that I have tried
temp = OSListBox.Value
DoCmd.OpenReport "OS", acViewPreview, , WhereCondition:=temp
and I tried this
DoCmd.OpenReport "OS", acViewPreview, , WhereCondition:=OSListBox.Value
I still get the second popup is there something wrong with my SQL that
generates the report. I have no idea where to go from here.
get my problem solved. So here is my problem. I have a report that returns
all computers that have a given operating system. The user can select the OS
from a list box I can not get this to work. I keep getting a pop up asking
for the parameter. Here is my code that I have tried
temp = OSListBox.Value
DoCmd.OpenReport "OS", acViewPreview, , WhereCondition:=temp
and I tried this
DoCmd.OpenReport "OS", acViewPreview, , WhereCondition:=OSListBox.Value
I still get the second popup is there something wrong with my SQL that
generates the report. I have no idea where to go from here.