If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Script to run formulas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-25-04, 11:12
Joe Kauffman Joe Kauffman is offline
Registered User
 
Join Date: Mar 2004
Posts: 1
Script to run formulas

Hello all,

We run a prospecting company in Az and have developed some formulas to find miscellaneous information about gold people have found. I would like for people to be able to enter their vairbles into the formula and run the query and give them the output. For example, if they want to find the specific gravity the would have the weight of gold in air, the weight of gold in water and divide by something..... 2.3grams X 3.3 grams / .56. What would be the best way to approach this?

Thanks for any information.

Joe Kauffman
Reply With Quote
  #2 (permalink)  
Old 03-25-04, 11:55
skirkpatrick skirkpatrick is offline
Registered User
 
Join Date: Mar 2004
Posts: 3
Er, a calculator??

Seriously, though - associate a number of fields with each formula (you'll then know the order of them). Take the values out of the fields and use your formula to calculate the result.

You also don't need ASP for this (or any server-side language), you could use client side JavaScript just as easily.
Reply With Quote
  #3 (permalink)  
Old 04-01-04, 18:46
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
Or perhaps this might help:

Using the Eval and Execute Functions - 3/3/2000
http://www.4guysfromrolla.com/webtech/030300-1.shtml

But you'd probably want to replace X with * or train your users accordingly.
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On