
Using ADO to execute a query in an Access 2000 or 2002 database that calls a Public function
Quote:
> ATTN: MICROSOFT. IF SOMEONE WORKING FOR MICROSOFT IS READING THIS, THE
> COMPANY NEEDS TO FIX THIS IN EITHER JET 5, THE NEXT ADO UPDATE OR
> WHATEVER TECHNOLOGY COULD SOLVE THIS PROBLEM.
Cobblers. ADO is about data, not about GUIs and user functions. ADO code
can be called in a variety of environments, including VB, Excel or
Powerpoint, VBS, Perl, ASP etc. etc. Its job is simply to send and fetch
data from tables.
It has long been an anomalous, if welcome, facility for DAO users in Access
that we have been able to call Access code from SQL -- but this is the
exception, not the rule. There is no "fix" here, any more than Excel's
table functions are missing in Word and need to be fixed.
Quote:
> 1- Use DAO (bleh). I don't like this because it's possible that 100 or
> more users could use an application which accesses the database
> simultaneously. DAO would require a separate instance of the database
> to be created for each user.
So what? Oh I see, I thought you meant 100 times Dim db As Database...
Microsoft says you can open a mdb with 255 concurrent users, but it starts
to get hairy after a dozen or so. See (3) below. Using a split architecture
helps, but I don't know if I'd use Jet for that many people.
Quote:
> 2- Move the calculations to the applications. This means more work for
> me. :(
And reduced performance. You may be able to carry out the functions within
SQL anyway using the builtin functions: check the help.
Quote:
> 3- Move the database to MSSQL server (or some other DBMS) and create
> extended stored proceudres to manipulate the data.
And you were worried about the extra work in (2)??! Probably the best idea
though, for future proofing and because you are pushing Jet with 100
concurrent users. I hope you are doing frequent backups!
Tim F