It can be done, but it is tricky and takes a lot of work. I suggest you
build an Excel template to use and format it the way you need it. Then, you
will have to open it from Access. Not with the Shell function, but by
establishing an instance of Excel. Then you will have to move the data from
your table or query to the spreadsheet. Check out the CopyRecordsetFrom
command.
Then, before you close the instance of Excel, you will have to read the data
out of the spreadsheet. There are at least a couple of ways to do this.
Without knowing the details, and because of the complexity of the issue, I
can't really give you a detailed answer here. You might try "VBA for
Dummies". It has some good basics on coding for Excel.
"Danny" wrote:
> I use excel to facilitate preparing financial statements ,the data comes from
> Access 2002. Excel is well suited for the need to add/or change minor
> formatting and to add sub totals in the right place. The reporting function
> of access is too restrictive. I have searched for other interactive drill
> down reporting programs that could be used to place on top of forms within
> access but have not found anything to date.
>
> Any way I wanted the spreadsheet function to be able to pull in data from
> Access and prepare the financial statements by using other worksheets on the
> same file or by pulling the amounts on a predefined template on the worksheet
> . I would also like to have any work done the the spreadsheet to be saved on
> the closure of the active form.
>
> I hope the above helps.
> Thanks for your help.
> Regards
> Danny.
>
> "Klatuu" wrote:
>
> > Danny,
> >
> > The site you posted shows how to create an Excel Spreadsheet in VB. That is
> > different from what you are trying to do. It would be helpful if you would
> > describe the functionality you need so we can help with a good approach.
> >
> > "Danny" wrote:
> >
> > > Is there a way of adding say excel to a form - which would have the same
> > > functions availabilty as the normal excel application.
> > >
> > > I wanted to avoid the user changing from one application to another i.e.
> > > access to excel and back to access.
> > >
> > > I have searched all the web sites, but cannot find anything apart from this
> > > , but do not know hoe implement it.
> > > http://www.vbdotnetheaven.com/Code/Jul2003/2124.asp
> > >
> > > Thanks
> > > Danny
> > >
> > >