|
-
May 12th, 2009, 08:46 PM
#1
Thread Starter
New Member
passing string formula into VB
I have an access table which stores formulas and a query which passes the formula into VB as a string. I would like this formula to calculate as code in VB. the formula calculation is x/y so i would like it to calculate x/y. I have tried eval but could not get it to work.
public function calc (x as double, y as double, formula as string) as double
calc= eval (formula)
end function
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|