I am trying to fix the Invoice report of the Time and Billing Access 2007 template database. I do see the problem, it's as you described -
"Note also that if you open the Invoice report from the Navigation panel, you may find that it displays details for the project invoice most recently opened in its subreports (for Employee Billables, Expenses and Payments),
but the totals aggregated at the foot of the report are those for ProjectID = 1."
But the only Macro I see is one called Filters and I'm not seeing the statements you referenced: "If you move the Close statement to below the OpenReport line (and below the RunCommand line also, if you wish) then it will work."
When I open the Macro Editor, there is one macro, about Filters, containing 8 macros, none of which contain an OpenReport line.
Admittedly, I'm not an expert, but where could this Report macro live? THANK YOU!
Susan
Rob Parker wrote:
Hi,About 6 months ago, there was another question regarding this
01-Feb-10
Hi
About 6 months ago, there was another question regarding this particula
database, and I looked at the report printing problem. Here is what I poste
back then (and the original problem - it is likely, but not necessarily th
same as yours)
<begin quote
Seemed like an intriguing problem, so I downloaded the A2007 version of th
Time and Billing template (I usually use A2003) and gave it a try. An
found the same problem
The underlying cause is in the macro code (I normally use VBA code, rathe
than macros), which is closing the Project Details form before opening th
report; the report therefore opens with the ProjectID set in its desig
parameter (1), and not with the ProjectID for the project showing on th
form. If you move the Close statement to below the OpenReport line (an
below the RunCommand line also, if you wish) then it will work. You'll als
need to give the arguments to close the form, rather than leave them blank
otherwise they will default to the object with focus (the report). Th
arguments you need are
Object Type: For
Object Name: Project Detail
The form needs to be closed because it is open in dialog mode, so you canno
get to see the report behind it unless you drag it around the screen - i
will always be present as the top object
Note also that if you open the Invoice report from the Navigation panel, yo
may find that it displays details for the project invoice most recentl
opened in its subreports (for Employee Billables, Expenses and Payments)
but the totals aggregated at the foot of the report are those for ProjectI
= 1
<end quote
I have not noticed a problem with the DLookup, but I will have a look and pos
again if I find something
HTH in the meantime
Rob
Previous Posts In This Thread:
Trouble with "Time and Billing Database" template
Hello, I am new to using online templates but need a new database that thi
template is set up well to use, but I am not a expert in Access, I understan
the basics, but not the more complicated code. As I said, I like the genera
setup of this template but have noticed a couple of bugs that I am not sur
how to fix. (There is a Dlookup on the timecard report that is not functionin
correctly and the timecard report does not print correctly). I just starte
getting into this (to set it up for my business) and noticed these bugs
Does anyone have any advice? Should I scrap this and find a differen
template? Has anyone used this template and aware of easy fixes
Thank you, any help would be appreciated.
Supply a link to the template and I will have a look.
Supply a link to the template and I will have a look
-
Arvin Meyer, MCP, MV
http://www.datastrat.co
http://www.mvps.org/acces
http://www.accessmvp.com
Hi,About 6 months ago, there was another question regarding this
Hi
About 6 months ago, there was another question regarding this particula
database, and I looked at the report printing problem. Here is what I posted
back then (and the original problem - it is likely, but not necessarily the
same as yours):
<begin quote>
Seemed like an intriguing problem, so I downloaded the A2007 version of the
Time and Billing template (I usually use A2003) and gave it a try. And
found the same problem.
The underlying cause is in the macro code (I normally use VBA code, rather
than macros), which is closing the Project Details form before opening the
report; the report therefore opens with the ProjectID set in its design
parameter (1), and not with the ProjectID for the project showing on the
form. If you move the Close statement to below the OpenReport line (and
below the RunCommand line also, if you wish) then it will work. You'll also
need to give the arguments to close the form, rather than leave them blank,
otherwise they will default to the object with focus (the report). The
arguments you need are:
Object Type: Form
Object Name: Project Details
The form needs to be closed because it is open in dialog mode, so you cannot
get to see the report behind it unless you drag it around the screen - it
will always be present as the top object.
Note also that if you open the Invoice report from the Navigation panel, you
may find that it displays details for the project invoice most recently
opened in its subreports (for Employee Billables, Expenses and Payments),
but the totals aggregated at the foot of the report are those for ProjectID
= 1.
<end quote>
I have not noticed a problem with the DLookup, but I will have a look and post
again if I find something.
HTH in the meantime,
Rob
I have had a look in the A2007 version of this template, and cannot see
I have had a look in the A2007 version of this template, and cannot see any
DLookups in the timecard report (assuming that you mean the report named
"Employee Time", which is the one I would consider to be the timecard).
I have also looked at the A2003 version of this template, and in that database
the only report which has any DLookups is the Invoice report - and the
DLookups seem to work correctly. Could you tell me exactly which template
you are using, and exactly which report/controls you are having problems
with.
Rob
<snip>
<snip>
I have had a look in the A2007 version of this template, and cannot see
I have had a look in the A2007 version of this template, and cannot see any
DLookups in the timecard report (assuming that you mean the report named
"Employee Time", which is the one I would consider to be the timecard).
I have also looked at the A2003 version of this template, and in that database
the only report which has any DLookups is the Invoice report - and the
DLookups seem to work correctly. Could you tell me exactly which template
you are using, and exactly which report/controls you are having problems
with.
Rob
<snip>
<snip>
Rob (and Arvin) thanks for taking a look at this for me.
Rob (and Arvin) thanks for taking a look at this for me. I skimmed through
your posts, but unfortunately do not have the time at the moment to work on
it. I will look through the info and my DB later today and will post back by
tomorrow morning w/ what I have resovled and what I still need help with.
Thank you so much for the help
Rob, the thread that you quoted does sound like the issue I am having.
Rob, the thread that you quoted does sound like the issue I am having. I will
go through that thread and see if I can fix and figure out how to better
specify the problem I am having w/ the DLOOKUP. Thanks again.
Submitted via EggHeadCafe - Software Developer Portal of Choice
WPF Report Engine, Part 1
http://www.eggheadcafe.com/tutorial...74-4eba5c821311/wpf-report-engine-part-1.aspx