Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / December 2003

Tip: Looking for answers? Try searching our database.

Set and Equation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Krefty - 15 Dec 2003 23:26 GMT
Good Day and thanks for looking at my problem.  I have a
list of 806 locations within my business and I need to
calculate a "flow" total using LOOKUP or IF functions to
create a calculation.

I have roughly 15 company's that I use as a "make"
manufacture for Reg 1 Make, Reg 2 Make and RV Make.  I
need to create something like a macro or querie function
that upon opening or forcing a manual running of that
macro,  says. IF (plant/location) this breaks up the 806
locations.

(lookup reg 1 make) When reg 1 make = "Mooney" (The name
of this will have to change to meet the 15 differant
manufactures)

Then (lookup) and solve the equation for Mooney (In this
case or for this maufacture it is (1.29 Cg P1)

Cg and P1 are specific factors that I have in electronic
version and whcih Cg is used is based on "size" and body
class.  This is in the same table of the "make"
and "plant/location".

After re-reading this it does seem very confusing but if
you could help me set up some equations or lookup or
macro functions I would greatly appreaciate it.  Or if
you know of any links that you could give me to help me
solve this I would greatly appreciate it.

Thanks in ADVANCE.

Krefty
Michel Walsh - 16 Dec 2003 13:43 GMT
Hi,

   You can store the data into a table, including the "name" of a VBA User
defined function of an object to be called. You can send that name to the
VBA6 function CallByName (see the help file), with the arguments you may
need to pass to this UserDefined VBA function. If the function does not need
any arguments, you can use, much simpler, eval( somestring ), to return the
result of the string:

   ?  eval ( " 5*4-3 ")

17

   A recordset can be use to "find" the appropriate record, in the table,
and to supply the "values" and the "strings" of the function(s) to be used,
appropriately.

Hoping it may help,
Vanderghast, Access MVP

> Good Day and thanks for looking at my problem.  I have a
> list of 806 locations within my business and I need to
[quoted text clipped - 29 lines]
>
> Krefty
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.