My code is as follows:
DoCmd.OpenReport "test", acViewPreview, , "[project_id] = " & Me![project_id]
When button (with above code) is pressed I get following message box:
Enter Parameter Value
When I manually enter a value then the resulting report is displayed
correctly.
What am I doing wrong?
"Seddon Acaster" wrote:
> This may or may not be relevant but I am using MS Access 2007.
>
> "Stefan Hoffmann" wrote:
>
> > hi Seddon,
> >
> > On 17.04.2010 16:23, Seddon Acaster wrote:
> > > Thx Stefan. I tried this and all it did was show all entries rather those
> > > filered by project_id.
> > Then check whether you have the data source of your report crafted
> > correctly and that you have specified the parameter for the OpenReport
> > in the right command order. It must be the fourth parameter:
> >
> > http://msdn.microsoft.com/en-us/libr...ice.11%29.aspx
> >
> >
> > mfG
> > --> stefan <--
> > .
> >