sql - access report from dynamic crosstab query and vba to "manually" generate reports -
I found out the problem of creating complex access reports (complex data processing, variable number of fields, others) . I need to implement some things in deep detail that I need to implement:
- Some fields should not appear in a query according to some values
- if If there is no specific record present, then a good colorful (very noticeable) message should appear instead of those values (for example, suppose that the date field contains a record with 03/04/2009, one Record day In the field of 03/06/2009 also exists, but there is no record with 03/05/2009. Before showing the data related to previous record, I should print something "as displayed on 03/05/2009 Not a single ")
- Once the chart, which does not consider data as a record, is instead calculated on some other records (such as the average of all grades for a given date ). The number of series in this chart varies according to the values of the records, this chart is not in the details section, rather instead of the page title or the group title of some type
It should also be noted that the query is a transformer query (more accurately, an INNER is included in several transformer queries), and thus the number of columns given by the query is different In the past, I have not been able to tie this query as records for reports, somehow access is still complaining (can anyone explain it? Is it normal, can I give it Do not worry in the field and should use it as a record or what should I do to avoid it?)
There are two options to achieve what I want (which I now have
- Create a record source and many more reports through unbound fields and many events (report_on, section_format, etc.) and manually with these help of DAO Price set Please. Changing the data series of charts is also possible through VBA.
- Set the record source for the query and create some crazy and confusing VBA codes to deal with the data and implement what I need.
I think option 2 is going to be a big headache and a waste of time, and I recognize that option 1 is like typing Excel file (because all data is received from DAO ), Which would be very easy because I have more control over almost everything (but for many other reasons, we want everything in the Access report)
When I am biased and I intend to have option 1 Go with me Are getting many problems, for example:
- I can not find a way to create new page report with VBA, and thus I have limited myself only the first page.
- Lack of free, online, decent and complete documents on the VBA and Access reports
In addition, if option 2 is more viable, then I am definitely sure To go with this, but I would also need some advice, and maybe some suggestions for solving the problems I have mentioned in this question.
So, the questions are:
- Where can I find some decent and complete documents on the Access report and VBA?
- How can I create a page in an access report and what page do I want to write?
- With the problem in my hand, will I reach any obstacles that I should know about? Should I already consider the option of access updates (for example, write in a spreadsheet)
Looks like you want to avoid all the dummy text boxes.
Comments
Post a Comment