Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default putting criteria directly into a database query, dsum, daverage, e

Is it possible in Excel to simply put criteria for a database query like
dsum(), dget(), davg() right in the query? For example, dsum(named
range,field name, criteria-right-in-the-query).

I am tired of laying out hords of query criteria in named ranges that I
refer to in just one query.

Is there a way to do this without vb macros?
--
Please contact me by email if you have an answer to this question. I
appreciate it.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 434
Default putting criteria directly into a database query, dsum, daverage, e

hi, !

Is it possible in Excel to simply put criteria for a database query like dsum(), dget(), davg() right in the query?
For example, dsum(named range, field name, criteria-right-in-the-query).
I am tired of laying out hords of query criteria in named ranges that I refer to in just one query.
Is there a way to do this without vb macros?


you might want to give a try to ms-query ? (data get external data)
- build the query
- assign certain parameters to cells
- modify "the cells" (or parameters)
- refresh yur query

hth,
hector.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default putting criteria directly into a database query, dsum, daverag

Hector, I tried this but MS Query doesn't seem to let me use SQL functions
like CURRENT_DATE. Can't figure it out. everytime I try to use a function
like this it spits it out.
--
Please contact me by email if you have an answer to this question. I
appreciate it.


"Héctor Miguel" wrote:

hi, !

Is it possible in Excel to simply put criteria for a database query like dsum(), dget(), davg() right in the query?
For example, dsum(named range, field name, criteria-right-in-the-query).
I am tired of laying out hords of query criteria in named ranges that I refer to in just one query.
Is there a way to do this without vb macros?


you might want to give a try to ms-query ? (data get external data)
- build the query
- assign certain parameters to cells
- modify "the cells" (or parameters)
- refresh yur query

hth,
hector.



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
Problems using DMAX, DSUM, DAVERAGE with new table theresa Excel Worksheet Functions 1 November 11th 08 09:55 AM
Can I use a different worksheet for my database using DSUM? Sandee Excel Worksheet Functions 0 October 7th 06 06:35 PM
DAVERAGE criteria HELP!!!! farmedgirl Excel Discussion (Misc queries) 2 April 23rd 06 01:02 PM
DSUM with External Database Amin Joseph Excel Worksheet Functions 0 July 13th 05 02:36 AM
CONTENTS OF TEXTBOX TO BE THE CRITERIA ON A DATABASE QUERY AQM Excel Programming 6 May 28th 04 02:18 PM


All times are GMT +1. The time now is 12:00 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"