Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
mas mas is offline
external usenet poster
 
Posts: 5
Default Access query from Excel

I am trying to write a query and accesss database. I can query the database
and
return a value to cell on a work sheet, but I would like the value assigned
to variable instead. Can that be done without placing the value on a
worksheet? I use the value in a formula.

Thanks




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Access query from Excel

Hi mas,

mas wrote:
I am trying to write a query and accesss database. I can query the
database and
return a value to cell on a work sheet, but I would like the value
assigned to variable instead. Can that be done without placing the
value on a worksheet? I use the value in a formula.


Yes, but it will involve some VBA programming. You could hit the db with
ADO, get the value you need, and store that value in a variable. You can do
a google search or MSDN search on ADO to find tons of examples of how to do
it.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query from Access into Excel cause Access to go to read only T Stephens Excel Discussion (Misc queries) 0 March 24th 09 04:17 PM
Run Access query from Excel nath Excel Programming 2 June 8th 06 04:04 PM
Can I use MS Query in Excel like an Append Query in Access Sam Wardill Excel Discussion (Misc queries) 0 April 11th 06 02:41 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM
Access query vs. Excel query dutty Excel Programming 1 July 28th 04 07:19 PM


All times are GMT +1. The time now is 12:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"