Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Access gurus who knows Excel formula - HELP!

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
Hawkeye-X Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Aug-23-04 03:26 PM
Original message
Access gurus who knows Excel formula - HELP!
Edited on Mon Aug-23-04 03:46 PM by HawkeyeX
=IF('CURRENT DMR'!W35="","",('CURRENT
DMR'!W35*'CURRENT DMR'!E35*8.34)*(COUNT('CURRENT
DMR'!A4:A34)))

In Access, 

CURRENT DMR!W35 is [AvgLTCTotalP] 
CURRENT DMR!E35 is [AvgLTC]

A4-A34 represents the dates (It needs to know how many days in
a month, since it is a monthly report)

So help me out!

Thanks,

Hawkeye-X
Printer Friendly | Permalink |  | Top
BootinUp Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Aug-23-04 03:38 PM
Response to Original message
1. It wouldn't be much different
Where do you want the answer displayed? on a form or a report I guess?

Are you storing the variables in Access tables?
Printer Friendly | Permalink |  | Top
 
Hawkeye-X Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Aug-23-04 03:46 PM
Response to Reply #1
2. The variable is in Access tables
and I'm trying to put it in a query form.

Thanks!

Hawkeye-X
Printer Friendly | Permalink |  | Top
 
BootinUp Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Aug-23-04 03:54 PM
Response to Reply #2
3. I'd create a function
Go to Modules and make a general purpose module "Module1". Then make a function.

Function yourfunctionname(AvgLTCTotalP,AvgLTC)

code to calculate result

yourfunctionname=result

End Function


Now call the function from the query and supply the two variables.

ok?
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Tue Apr 30th 2024, 12:40 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC