Hi, need some help please! Here is a quick description of what I'm trying to achieve:
I have an Access 2010 database where I can produce a Report based on my various "products".
It currently lists all products and the relevant info to that product I have added. I have also created a Form with a drop down box of all my "products".
What I want to do is, click on a button next to the drop down box in my Form and select this "product" only to show in my Report. I have used the following to do this:
However, when I then try to 'click' my button, I only get the "Enter Parameter Value" box. I hate this box! Any ideas of what I need to do? Important note, my VBA and Access knowledge is very small - currently learning by doing!
[imgnothumb]http://bytes.com/attachments/attachment/5588d1320164198/error.jpg[/imgnothumb]
I have an Access 2010 database where I can produce a Report based on my various "products".
It currently lists all products and the relevant info to that product I have added. I have also created a Form with a drop down box of all my "products".
What I want to do is, click on a button next to the drop down box in my Form and select this "product" only to show in my Report. I have used the following to do this:
Code:
Private Sub Report_Click() DoCmd.OpenReport "xxTotSum", acViewPreview, , "[Article No#]=" & Me![ArticleNoBox], acWindowClose End Sub
[imgnothumb]http://bytes.com/attachments/attachment/5588d1320164198/error.jpg[/imgnothumb]
Comment