Sorry about the HTML, I don't want the rows to break up
You've just given us the answer (which works just as well in Access2000, thank you very much!)
Put a combo box in your form. When the wizard starts, just click Cancel.
Click on Properties,
Next to RowSource paste the following
SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Name) Not Like "*Subreport*") AND ((MSysObjects.Type)=-32764))
(It should be 1 long line so past it into Word first and check it)
It lists all the Reports in the database except for those which contain the word Subreport in the name -
that's the Not Like "*Subreport*" bit.
If, like me, you just call your subreports xxxsub then change that to say
Not Like "*Sub*"
and avoid using the letters sub in your main report's names.
Evi
> In Access 2007, there is a local template called "Sales Pipeline." When you
> open it and click on the "Customer List" Form, you will see a Report combo
[quoted text clipped - 18 lines]
>
> Thanks everyone.
Evi - 30 Mar 2008 16:58 GMT
Forgot to answer your second requirement.
when I choose a specific report, it
> be updated based on the information that I put into the tables
That happens anyway. As soon as you put info into your tables your reports
are automatically updated.
If you mean that you want to open your report then use Properties on the
Other tab to name your report cboReports
On the Events tab, click next to AfterUpdate and choose Event Procedure.
Click just right of that to open a code page
Above the line which says
End Sub
type
DoCmd.OpenReport Me.cboReports
Or do you mean that you are typing your data directly into your table and
you want to have your report automatically update as you type, before you
close your table?
Evi
Sorry about the HTML, I don't want the rows to break up
You've just given us the answer (which works just as well in Access2000,
thank you very much!)
Put a combo box in your form. When the wizard starts, just click Cancel.
Click on Properties,
Next to RowSource paste the following
SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Name) Not Like
"*Subreport*") AND ((MSysObjects.Type)=-32764))
(It should be 1 long line so past it into Word first and check it)
It lists all the Reports in the database except for those which contain the
word Subreport in the name -
that's the Not Like "*Subreport*" bit.
If, like me, you just call your subreports xxxsub then change that to say
Not Like "*Sub*"
and avoid using the letters sub in your main report's names.
Evi
> In Access 2007, there is a local template called "Sales Pipeline." When you
> open it and click on the "Customer List" Form, you will see a Report combo
[quoted text clipped - 18 lines]
>
> Thanks everyone.