P
Pongetti
Hello,
I have one user having a problem with access. Many functions don't seem to
work on his computer. I have about 100 users and I have gotten no complaints
from other people.
(BTW, I posted about this before, sort of, but the problem's a bit different
than I thought it was back then. Maybe somebody can find a solution with
these new clues)
When he goes to some forms and reports they give him errors, I've spent a
while trying to figure out what's causing the problems. I can't figure out
what's causing it. Anyways, I have noticed this behaviour:
-DLookup, DFirst, etc. will give me the error "unknown function name" when
called from a query. They work fine if called from the module of a form.
-If I call DLookup, DFirst, etc. from a query and use an incorrect number of
arguments, it will tell me that I don't have the correct number of arguments
rather than telling me it's an unknown function name, so it knows the
definition in some way, it just can't find them for actual use.
-If I have a public function that is in a Module and I call it from a query,
it will also give me the error "unknown function name". Like DLookup, they
work fine when called from forms and other modules, also. However, if I use
the incorrect number of arguments when I call it from a query, it will still
give me "unknown function name", unlike the VBA functions where it told me I
had an incorrect number of arguments.
-The functions format() and nz() work in queries, according to msdn these
are from VBA, just like DLookup. Now() works also.
Now, I know you're all thinking, check your references! But I already have.
There are no references missing. I have also tried the trick of unchecking
all references possible, backing out, and reselecting them. I have also
tried unselecting as many as I can, backing out, and using it. Still the
same problem.
It is not a security issue either. I have tried using my username and it
still doesn't work.
I even tried re-installing office. Still doesn't work.
I downloaded vbe6.dll and replaced it. Still doesn't work.
The computer has Access 2002 like every other person in the building and is
using Windows 2000 like a lot of others.
Any ideas?
I have one user having a problem with access. Many functions don't seem to
work on his computer. I have about 100 users and I have gotten no complaints
from other people.
(BTW, I posted about this before, sort of, but the problem's a bit different
than I thought it was back then. Maybe somebody can find a solution with
these new clues)
When he goes to some forms and reports they give him errors, I've spent a
while trying to figure out what's causing the problems. I can't figure out
what's causing it. Anyways, I have noticed this behaviour:
-DLookup, DFirst, etc. will give me the error "unknown function name" when
called from a query. They work fine if called from the module of a form.
-If I call DLookup, DFirst, etc. from a query and use an incorrect number of
arguments, it will tell me that I don't have the correct number of arguments
rather than telling me it's an unknown function name, so it knows the
definition in some way, it just can't find them for actual use.
-If I have a public function that is in a Module and I call it from a query,
it will also give me the error "unknown function name". Like DLookup, they
work fine when called from forms and other modules, also. However, if I use
the incorrect number of arguments when I call it from a query, it will still
give me "unknown function name", unlike the VBA functions where it told me I
had an incorrect number of arguments.
-The functions format() and nz() work in queries, according to msdn these
are from VBA, just like DLookup. Now() works also.
Now, I know you're all thinking, check your references! But I already have.
There are no references missing. I have also tried the trick of unchecking
all references possible, backing out, and reselecting them. I have also
tried unselecting as many as I can, backing out, and using it. Still the
same problem.
It is not a security issue either. I have tried using my username and it
still doesn't work.
I even tried re-installing office. Still doesn't work.
I downloaded vbe6.dll and replaced it. Still doesn't work.
The computer has Access 2002 like every other person in the building and is
using Windows 2000 like a lot of others.
Any ideas?