access queries
RH

Forum home » Delegate support and help forum » Microsoft Access Training and help » Access queries

Access queries

resolvedResolved · High Priority · Version 2010

Charlotte has attended:
Access Intermediate course

Access queries

I have a set of about 100 reports to run and if possible would like to spool the results into an output file. Is this possible?

I know that I could put them into a report, but the queries are continually changing and bring added to, so that would give me an enormous maintenance task.

RE: Access queries

Hi Charlotte

Can you say a little more about your query? It sounds like a macro would help you if you are running 100 reports. It might help to send an example of what you need if that is possible.

To send an example, reply then click the Upload button.

Regards
Doug

Doug Dunn
Best STL

RE: Access queries

I am checking medical data for inconsistencies. So for example one report might check that a visit date is not before the patient's date of birth and another might check that the patient's height has not decreased over time.

In the olden days (!) I used to run SQL scripts on the command line, and would do a "spool" command at the begining of my work so that all the results went into a single output file which I could send to the client.

I do use a macro to kick off all the reports and run them in turn, rather than having to run them individually, but at the moment I then have to go through the output screens and copy and paste any output (ie data inconsistencies) into a Word doc.

I also think that you can run the results of ONE query into an output file.. but what I need is for all the results to go into just one output file.

RE: Access queries

Charlotte
Let check with one of the other trainers and I will get back to you.
Doug

RE: Access queries

do you have any update on this?

RE: Access queries

Hello Charlote,

I am currently going through our forum to clear out any active questions. Can you please tell me whether you have managed to resolve this problem?

If not, please reply within five days so I can contact a trainer who can help you, otherwise this question will be marked as Resolved.

Thank you for your assistance.

Regards

Cindy
Microsoft Office Trainer

RE: Access queries

I definitely still want an answer .. as no-one got back to me I worked round it again, but I redo this job every few months so please find me a solution if possible!

RE: Access queries

Hi Charlotte,

First of all I want to apologies that we haven't answered you earlier.

I have spent a lot of time trying to find a method to do what you want and unfortunately I have not been able to find a solution. I could find suggestions but all of them you need to buy software to do it.

You can buy software to output multiple reports from Access to one PDF file.

I am sorry that I cannot find a method in Access to do what you want.


Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

RE: Access queries

Thanks - I appreciate you having investigated this for me. I feel better knowing that it isn't possible and that I am not just being stupid! For your information, I have found a good workaround myself. Basically I have updated every query so that they all now start with an insert statement .. the results of every query are inserted into one table, with the report code being the first field. I then just have one report which runs on this table. Thanks for your time


 

Access tip:

Prefixed Autonumbering

When using Date Type = Autonumber as a primary key, clients may require autonumbering to be prefixed with a letter.

For example, P001, where P is the prefixed letter

Instructions
Step 1. Create Field Name
Step 2. Set Data Type to Autonumber
Step 3. Within Field Property General tabsheet,
enter Format property as [backslash]P000



View all Access hints and tips


Server loaded in 0.06 secs.