J
justanotherstudent
I have a customer who I have created custom macros for in the past in Excel.
Recently he asked me to look into a very small project in Access for one of
his clients which has turned out to be somewhat of a nightmare. I can't
figure this out. Any help would be greatly appreciated.
SHORT - The database is composed of tables, queries, and reports and is
primarily used to generate insurance reports. I need to create another report
for this year based of one of the existing reports except I can't find the
object dependencies for these reports listed anywhere in the database. I
realize I can copy and paste a new report but I need to change the SQL in one
of the queries that is listed as a dependency but is not in the actual list
of queries. If I do copy and paste a new report for the year 2008 and change
the SQL in the query it affects the previous report for the year 2007 because
they appear to still use the same dependency. My main question is how does a
report aqcuire a dependency that is listed as a query when you right click
the report to view dependencies but does not show up in the list of queries
from the database window?
LONG DESCRIPTION - What when the DB opens is a main form like a switchboard
except the previous developer used VBA to create this form. Every year the
main data table for the DB is updated but a new report is needed to summarize
the sales of the new year. So the main form or switchboard has a button that
opens another form with buttons for all the yearly reports. When you click on
one of those buttons one last form opens that has 4 different reports for
that single year. All of this is controlled by VBA code. The rest of the
functionality appears to be tables, reports, and queries that were created by
wizards within Access. The 4 different reports are summary, 25% of the
summary, 50% of the summary, and 75% of the summary. The reports for all the
different years and for each report for that year appear exactly the same.
The only difference is in the SQL by using a WHERE clause that pulls data for
each report from the DB based on the date. When I right click on each report
to view the object dependencies a window in the right pane appears that has
two options 1)objects that depend on me 2) objects that I depend on. The
first option never has any tables or queries listed but when I click on the
2nd option I see a list of 2 queries and the tables they get their data from
listed in the right hand pane. It's these queries listed as Object
dependencies that I need to replicate because they are where the actual SQL
resides. But in the Database Window when I click on Queries they are not
listed and if I try to create a new report from scratch, I still can't find
them listed anywhere.
What complicates this is I could just generate a new report based off a new
query that I create but the SQL is composed of two tables which should have
a relationship but are showing up as if they don't and a join statement which
isn't working for me when I try this. The client says I should be able to
copy and paste a new report based off another report but when I do this and
change the SQL in the object dependencies it also changes the SQL for the
report I copied from.
I hope this is something simple. I don't program in Access a whole lot and
the is becoming frustrating to me. I can't understand how a report could have
a list of dependencies that you can't find elsewhere in the DB? Even if I
could create a report from scratch using the same method of creating these
mysterious dependencies it would help but I don't understand enough about
Access to do this apparently.
Thanks for any help!
Recently he asked me to look into a very small project in Access for one of
his clients which has turned out to be somewhat of a nightmare. I can't
figure this out. Any help would be greatly appreciated.
SHORT - The database is composed of tables, queries, and reports and is
primarily used to generate insurance reports. I need to create another report
for this year based of one of the existing reports except I can't find the
object dependencies for these reports listed anywhere in the database. I
realize I can copy and paste a new report but I need to change the SQL in one
of the queries that is listed as a dependency but is not in the actual list
of queries. If I do copy and paste a new report for the year 2008 and change
the SQL in the query it affects the previous report for the year 2007 because
they appear to still use the same dependency. My main question is how does a
report aqcuire a dependency that is listed as a query when you right click
the report to view dependencies but does not show up in the list of queries
from the database window?
LONG DESCRIPTION - What when the DB opens is a main form like a switchboard
except the previous developer used VBA to create this form. Every year the
main data table for the DB is updated but a new report is needed to summarize
the sales of the new year. So the main form or switchboard has a button that
opens another form with buttons for all the yearly reports. When you click on
one of those buttons one last form opens that has 4 different reports for
that single year. All of this is controlled by VBA code. The rest of the
functionality appears to be tables, reports, and queries that were created by
wizards within Access. The 4 different reports are summary, 25% of the
summary, 50% of the summary, and 75% of the summary. The reports for all the
different years and for each report for that year appear exactly the same.
The only difference is in the SQL by using a WHERE clause that pulls data for
each report from the DB based on the date. When I right click on each report
to view the object dependencies a window in the right pane appears that has
two options 1)objects that depend on me 2) objects that I depend on. The
first option never has any tables or queries listed but when I click on the
2nd option I see a list of 2 queries and the tables they get their data from
listed in the right hand pane. It's these queries listed as Object
dependencies that I need to replicate because they are where the actual SQL
resides. But in the Database Window when I click on Queries they are not
listed and if I try to create a new report from scratch, I still can't find
them listed anywhere.
What complicates this is I could just generate a new report based off a new
query that I create but the SQL is composed of two tables which should have
a relationship but are showing up as if they don't and a join statement which
isn't working for me when I try this. The client says I should be able to
copy and paste a new report based off another report but when I do this and
change the SQL in the object dependencies it also changes the SQL for the
report I copied from.
I hope this is something simple. I don't program in Access a whole lot and
the is becoming frustrating to me. I can't understand how a report could have
a list of dependencies that you can't find elsewhere in the DB? Even if I
could create a report from scratch using the same method of creating these
mysterious dependencies it would help but I don't understand enough about
Access to do this apparently.
Thanks for any help!