PC Review


Reply
Thread Tools Rate Thread

Can Excel directly access .mdb?

 
 
Brian
Guest
Posts: n/a
 
      15th May 2009
Howdy All,

I've been working on a project (with much help from Dave Peterson!)

I've imported some data from an Access Database.

Put I guess I should've asked this question first:

Can I set up a connection to the database and run macros and functions on
the data in Excel?

It seems to me if I can do that, I would save alot of time.

Thanks,
Brian


 
Reply With Quote
 
 
 
 
Patrick Molloy
Guest
Posts: n/a
 
      15th May 2009
yes

menu: Data/Import External Data/New Database Query

select MS Access and follow the questions


"Brian" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Howdy All,
>
> I've been working on a project (with much help from Dave Peterson!)
>
> I've imported some data from an Access Database.
>
> Put I guess I should've asked this question first:
>
> Can I set up a connection to the database and run macros and functions on
> the data in Excel?
>
> It seems to me if I can do that, I would save alot of time.
>
> Thanks,
> Brian
>

 
Reply With Quote
 
Brian
Guest
Posts: n/a
 
      15th May 2009
Thanks Patrick.

Your solution is what I've been doing.

To clarify my question:

Can I use data in the Access DB without actually importing it into Excel?

I apologize if I am being obtuse, much of this is new to me.

Brian

"Patrick Molloy" <(E-Mail Removed)> wrote in message
news:u6rpz$(E-Mail Removed)...
> yes
>
> menu: Data/Import External Data/New Database Query
>
> select MS Access and follow the questions
>
>
> "Brian" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Howdy All,
>>
>> I've been working on a project (with much help from Dave Peterson!)
>>
>> I've imported some data from an Access Database.
>>
>> Put I guess I should've asked this question first:
>>
>> Can I set up a connection to the database and run macros and functions on
>> the data in Excel?
>>
>> It seems to me if I can do that, I would save alot of time.
>>
>> Thanks,
>> Brian
>>



 
Reply With Quote
 
Patrick Molloy
Guest
Posts: n/a
 
      15th May 2009
you can use VBA in Access to instantiate Excel and populate a worksheet.

"Brian" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Thanks Patrick.
>
> Your solution is what I've been doing.
>
> To clarify my question:
>
> Can I use data in the Access DB without actually importing it into Excel?
>
> I apologize if I am being obtuse, much of this is new to me.
>
> Brian
>
> "Patrick Molloy" <(E-Mail Removed)> wrote in message
> news:u6rpz$(E-Mail Removed)...
>> yes
>>
>> menu: Data/Import External Data/New Database Query
>>
>> select MS Access and follow the questions
>>
>>
>> "Brian" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Howdy All,
>>>
>>> I've been working on a project (with much help from Dave Peterson!)
>>>
>>> I've imported some data from an Access Database.
>>>
>>> Put I guess I should've asked this question first:
>>>
>>> Can I set up a connection to the database and run macros and functions
>>> on the data in Excel?
>>>
>>> It seems to me if I can do that, I would save alot of time.
>>>
>>> Thanks,
>>> Brian
>>>

>
>

 
Reply With Quote
 
Harald Staff
Guest
Posts: n/a
 
      15th May 2009
Yes, you can read and write to a database, in fact almost all kinds of
databases, from Excel and other MS Office programs, using VBA macros. The
technology you may want to use is called ADO (activex data objects).

HTH. Best wishes Harald


"Brian" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Thanks Patrick.
>
> Your solution is what I've been doing.
>
> To clarify my question:
>
> Can I use data in the Access DB without actually importing it into Excel?
>
> I apologize if I am being obtuse, much of this is new to me.
>
> Brian
>
> "Patrick Molloy" <(E-Mail Removed)> wrote in message
> news:u6rpz$(E-Mail Removed)...
>> yes
>>
>> menu: Data/Import External Data/New Database Query
>>
>> select MS Access and follow the questions
>>
>>
>> "Brian" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Howdy All,
>>>
>>> I've been working on a project (with much help from Dave Peterson!)
>>>
>>> I've imported some data from an Access Database.
>>>
>>> Put I guess I should've asked this question first:
>>>
>>> Can I set up a connection to the database and run macros and functions
>>> on the data in Excel?
>>>
>>> It seems to me if I can do that, I would save alot of time.
>>>
>>> Thanks,
>>> Brian
>>>

>
>


 
Reply With Quote
 
Brian
Guest
Posts: n/a
 
      15th May 2009
Thanks for the replies.

Harald,

If I figure out how to set up a ADO connection to the Access DB, can I
reference data in the DB and run functions/formulas on it in Excel without
actually pulling the data into Excel?

Example of what I mean:

=SUM(DB_cell_reference1B_cell_reference90000)

If so, how do I set up the connection and then reference cells in the DB?

Thanks,

Brian




"Harald Staff" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Yes, you can read and write to a database, in fact almost all kinds of
> databases, from Excel and other MS Office programs, using VBA macros. The
> technology you may want to use is called ADO (activex data objects).
>
> HTH. Best wishes Harald
>
>
> "Brian" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Thanks Patrick.
>>
>> Your solution is what I've been doing.
>>
>> To clarify my question:
>>
>> Can I use data in the Access DB without actually importing it into Excel?
>>
>> I apologize if I am being obtuse, much of this is new to me.
>>
>> Brian
>>
>> "Patrick Molloy" <(E-Mail Removed)> wrote in message
>> news:u6rpz$(E-Mail Removed)...
>>> yes
>>>
>>> menu: Data/Import External Data/New Database Query
>>>
>>> select MS Access and follow the questions
>>>
>>>
>>> "Brian" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Howdy All,
>>>>
>>>> I've been working on a project (with much help from Dave Peterson!)
>>>>
>>>> I've imported some data from an Access Database.
>>>>
>>>> Put I guess I should've asked this question first:
>>>>
>>>> Can I set up a connection to the database and run macros and functions
>>>> on the data in Excel?
>>>>
>>>> It seems to me if I can do that, I would save alot of time.
>>>>
>>>> Thanks,
>>>> Brian
>>>>

>>
>>

>



 
Reply With Quote
 
dmoney
Guest
Posts: n/a
 
      16th May 2009
Yes- I do this type of thing all the time. My code connects to a database,
querrys the information based on values of cells in excel and then performs
operations using those values and returns the result to excel. Is this what
u are looking for? if so, email me (E-Mail Removed) and I would be glad
to help.

dmoney

"Brian" wrote:

> Thanks for the replies.
>
> Harald,
>
> If I figure out how to set up a ADO connection to the Access DB, can I
> reference data in the DB and run functions/formulas on it in Excel without
> actually pulling the data into Excel?
>
> Example of what I mean:
>
> =SUM(DB_cell_reference1B_cell_reference90000)
>
> If so, how do I set up the connection and then reference cells in the DB?
>
> Thanks,
>
> Brian
>
>
>
>
> "Harald Staff" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Yes, you can read and write to a database, in fact almost all kinds of
> > databases, from Excel and other MS Office programs, using VBA macros. The
> > technology you may want to use is called ADO (activex data objects).
> >
> > HTH. Best wishes Harald
> >
> >
> > "Brian" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> >> Thanks Patrick.
> >>
> >> Your solution is what I've been doing.
> >>
> >> To clarify my question:
> >>
> >> Can I use data in the Access DB without actually importing it into Excel?
> >>
> >> I apologize if I am being obtuse, much of this is new to me.
> >>
> >> Brian
> >>
> >> "Patrick Molloy" <(E-Mail Removed)> wrote in message
> >> news:u6rpz$(E-Mail Removed)...
> >>> yes
> >>>
> >>> menu: Data/Import External Data/New Database Query
> >>>
> >>> select MS Access and follow the questions
> >>>
> >>>
> >>> "Brian" <(E-Mail Removed)> wrote in message
> >>> news:(E-Mail Removed)...
> >>>> Howdy All,
> >>>>
> >>>> I've been working on a project (with much help from Dave Peterson!)
> >>>>
> >>>> I've imported some data from an Access Database.
> >>>>
> >>>> Put I guess I should've asked this question first:
> >>>>
> >>>> Can I set up a connection to the database and run macros and functions
> >>>> on the data in Excel?
> >>>>
> >>>> It seems to me if I can do that, I would save alot of time.
> >>>>
> >>>> Thanks,
> >>>> Brian
> >>>>
> >>
> >>

> >

>
>
>

 
Reply With Quote
 
Brian
Guest
Posts: n/a
 
      16th May 2009
Thanks Devin,

I will probably contact you this coming week, I try not to work on the
weekend if I can help it (doesn't always happen like that though)

Could you maybe just post a quick example of how you set up a connection to
TEST.MBD and reference a give row or cell?

Thanks,

Brian


"dmoney" <(E-Mail Removed)> wrote in message
news:8FEE4A78-90A1-41D6-9AF3-(E-Mail Removed)...
> Yes- I do this type of thing all the time. My code connects to a
> database,
> querrys the information based on values of cells in excel and then
> performs
> operations using those values and returns the result to excel. Is this
> what
> u are looking for? if so, email me (E-Mail Removed) and I would be
> glad
> to help.
>
> dmoney
>
> "Brian" wrote:
>
>> Thanks for the replies.
>>
>> Harald,
>>
>> If I figure out how to set up a ADO connection to the Access DB, can I
>> reference data in the DB and run functions/formulas on it in Excel
>> without
>> actually pulling the data into Excel?
>>
>> Example of what I mean:
>>
>> =SUM(DB_cell_reference1B_cell_reference90000)
>>
>> If so, how do I set up the connection and then reference cells in the DB?
>>
>> Thanks,
>>
>> Brian
>>
>>
>>
>>
>> "Harald Staff" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>> > Yes, you can read and write to a database, in fact almost all kinds of
>> > databases, from Excel and other MS Office programs, using VBA macros.
>> > The
>> > technology you may want to use is called ADO (activex data objects).
>> >
>> > HTH. Best wishes Harald
>> >
>> >
>> > "Brian" <(E-Mail Removed)> wrote in message
>> > news:%(E-Mail Removed)...
>> >> Thanks Patrick.
>> >>
>> >> Your solution is what I've been doing.
>> >>
>> >> To clarify my question:
>> >>
>> >> Can I use data in the Access DB without actually importing it into
>> >> Excel?
>> >>
>> >> I apologize if I am being obtuse, much of this is new to me.
>> >>
>> >> Brian
>> >>
>> >> "Patrick Molloy" <(E-Mail Removed)> wrote in message
>> >> news:u6rpz$(E-Mail Removed)...
>> >>> yes
>> >>>
>> >>> menu: Data/Import External Data/New Database Query
>> >>>
>> >>> select MS Access and follow the questions
>> >>>
>> >>>
>> >>> "Brian" <(E-Mail Removed)> wrote in message
>> >>> news:(E-Mail Removed)...
>> >>>> Howdy All,
>> >>>>
>> >>>> I've been working on a project (with much help from Dave Peterson!)
>> >>>>
>> >>>> I've imported some data from an Access Database.
>> >>>>
>> >>>> Put I guess I should've asked this question first:
>> >>>>
>> >>>> Can I set up a connection to the database and run macros and
>> >>>> functions
>> >>>> on the data in Excel?
>> >>>>
>> >>>> It seems to me if I can do that, I would save alot of time.
>> >>>>
>> >>>> Thanks,
>> >>>> Brian
>> >>>>
>> >>
>> >>
>> >

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access excel file in HttpPostedFile directly? Ralph Watermann Microsoft ASP .NET 1 13th Mar 2007 02:29 PM
How to update ms access tables directly from ms excel? =?Utf-8?B?TmFiaW4=?= Microsoft Excel New Users 3 11th Oct 2006 01:48 PM
CAN I READ DATA DIRECTLY FROM ACCESS TO EXCEL??? benton via AccessMonster.com Microsoft Access Queries 1 6th Dec 2005 12:26 PM
Create Report from Access DB directly into Excel Chris A Microsoft Access Reports 2 22nd Dec 2004 03:41 PM
is it possible for an html/asp page to access Excel directly colinlyse Microsoft Excel Programming 0 7th Nov 2003 02:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:09 PM.