473,461 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Questions about Functions and the Expression Service

TC
I've used Access for a while, so I know that Access queries which use
VBA functions or custom functions cannot be evaluated from outside
Access. This was never a problem for me before, but it is a major
obstacle in my current project. I'd like to do a little research into
the issue and see if I can find an elegant workaround.
>From what I understand, VBA functions work in Access queries because
DAO uses something in Access called the "expression service". I'd be
grateful if someone could help answer a few questions about the
expression service:

1. What kind of an animal is the expression service? Is it an object
that can be referenced through the Access object model?

2. Is there a way to create an instance of the Access expression
service from outside of Access and hook up that instance to DAO?

3. Do other applications, like VB6 or Excel, have their own versions
of the expression service, and can those be used to support functions
in queries?
-TC

Aug 22 '07 #1
4 1662

"Allen Browne" <Al*********@SeeSig.Invalidwrote in message
news:46***********************@per-qv1-newsreader-01.iinet.net.au...
AFAIK, Access does not expose the ES
AFAIK it does, via the Eval function...

Problem is, this can only be called within the Access environment, and it's
not an object,so even automation won't help to make use of it externally. I
suppose you could call RunCode to execute it, but that's a little too
convoluted for my liking - however others may disagree...

Aug 23 '07 #2
"Allen Browne" <Al*********@SeeSig.Invalidwrote in
news:46***********************@per-qv1-newsreader-01.iinet.net.au:
AFAIK, Access does not expose the ES. It is not part of the VBA
model. I don't think it's part of the DAO model. My (limited)
understanding is that it is part of Access itself, but not exposed
through the Access library in code.
Access has its own expression service and so does Jet, for the
functions supported in both Jet and VBA. I don't know the particular
relationship between them, but I expect they are very closely
related, with the Jet ES handing off to the Access ES anything it
doesn't understand.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Aug 23 '07 #3
"Stuart McCall" <sm*****@myunrealbox.comwrote in
news:fa*******************@news.demon.co.uk:
"Allen Browne" <Al*********@SeeSig.Invalidwrote in message
news:46***********************@per-qv1-newsreader-01.iinet.net.au..
>AFAIK, Access does not expose the ES

AFAIK it does, via the Eval function...

Problem is, this can only be called within the Access environment,
and it's not an object,so even automation won't help to make use
of it externally. I suppose you could call RunCode to execute it,
but that's a little too convoluted for my liking - however others
may disagree...
Huh? Eval is a member of the Access.Application object, as is almost
anything that you can call as a standalone command without any
prefixing object.

Take a look at the Object Browser -- it tells you exactly what
object these kinds of things hang off of (as it were).

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Aug 23 '07 #4

"David W. Fenton" <XX*******@dfenton.com.invalidwrote in message
news:Xn**********************************@127.0.0. 1...
Eval is a member of the Access.Application object
Of course it is <slaps forehead>. Duh.

Thanks
Aug 23 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Xavier Décoret | last post by:
Hi, I cannot find the way to do generic lambda functions using the lambda syntax in python. I am probably missing a point. For example, the code # f = lambda : print "hello" # f()
27
by: Jatinder | last post by:
I 'm a professional looking for the job.In interview these questions were asked with some others which I answered.But some of them left unanswered.Plz help. Here are some questions on C/C++, OS...
3
by: Dennis Chang | last post by:
Hi all, I was reading about function pointers and came across something which intrigued me. K&R2 calls qsort (pg.119) within main as so: qsort( (void **) lineptr, 0, nlines-1, (int (*) (void...
81
by: Matt | last post by:
I have 2 questions: 1. strlen returns an unsigned (size_t) quantity. Why is an unsigned value more approprate than a signed value? Why is unsighned value less appropriate? 2. Would there...
10
by: Adam White | last post by:
The company I work for used to create web applications using an ASP user interface, VB6 COM+ middle-tier with a SQL2K back-end. They have recently moved on to .NET with ASP.NET user interfaces and...
0
by: mercury529 | last post by:
Hello everyone. Currently the only version of Visual Studio I own is VS6. I have developed a Web Service using VC++ 6 and the Soap Toolkit 3 Microsoft deployed prior to the .NET Web Service...
1
by: reggiemack | last post by:
All, I need help! I need to develop a web-based App with the following attributes/requirements: • This App will manipulate (Add, Update, Delete, rows) in an RDBMS via ODBC. • The target...
9
by: Earl | last post by:
I have somewhat of an interesting scenario: The form allows the user to select a service, which populates a a grid of product information related to that service ("service grid"). The user can...
1
MMcCarthy
by: MMcCarthy | last post by:
Access has a number of built-in functions which can be generally used in queries or VBA code. Some of the more common ones are: Note: anything in square brackets is optional Date Functions ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.