I've been unsuccessful finding the median & mode
functions in Access. They are available in Excel, but
it's not possible to use Excel when the number of records
exceeds 60,000. Does anyone know how to calculate these
basic statitical functions in Access?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You can use OLE Automation with Excel.
Scenario:
1. Open Excel as an Automation server.
2. Run query that uses Excel functions.
3. Close Excel Automation server.
1. Read the Access help article on CreateObject Function and
GetObject Function. These tell you how to set up an Automation
server. Set the object variable as a global or module-level variable.
2. Create the query with a call to an Access user-defined function
(UDF). That function will use the Automation object you created in 1.
to pass the required parameters to the Excel functions & return the
results to the query. You can use the UDF call like this:
SELECT col_1, col_2, functionName(param1, param2)
FROM tableName
.... etc. ...
3. After the query runs, set the Automation object to Nothing.
- --
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQFY5FoechKqOuFEgEQJ1ZQCeJdGm1DCA6YQplVyk+dMmM5ursHsAoJ67
JMNb1CmlYt3GQbwBu2XUxoIp
=q6Bn
-----END PGP SIGNATURE-----