Re: Function name not found
- From: Brian <Brian@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Mar 2006 13:18:02 -0800
On second thought, this is the MS Access Object Library (MSACC.OLB), not the
generic Office 11.0 Object Library. Pardon my ignorance here, but isn't the
Access Object Library rather fundamental to a lot of things that happen in
Access?
By default, this resides in the C:\Program FIles\Microsoft Office\OFFICE11
folder for Access 2003, including the runtime, but in the ...Office10 folder
for full versions of Access 2002 or 2000.
"Douglas J Steele" wrote:
Why are you including the Office reference? Do you really need it?.
Depending on what you're doing, you may be able to use Late Binding, and
eliminate the need for the reference, thus eliminating your problem.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Brian" <Brian@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E9ADE37E-C8B1-4AA1-A62B-5F35C33453DB@xxxxxxxxxxxxxxxx
How would you recommend distributing an Access app, then, to customersthat
are casual canned-software-only customers? I have an app that has justit
outgrown my local client base; I have a significant number of potential
customers asking how they can purchase it, and they may well want to buy
"off the shelf" with no involvement of mine on their systems. I supposecontrol
that's a good problem to have, but I need to ensure that I don't lose
of the security of my code anywhere along the way.those
To this point, I have been simply setting AllowBypassKey to False for
customers whose systems I manage, but I don't really want to distributethe
app to unknown customers that way when it is is easy to re-enable thebypass
key (as you are well aware, there are several tools out there that makethis
quite easy).Access,
So, I thought I would just use an MDE. For those clients not having
I can distribute the runtime 2003, but now I'm stuck with the currentproblem
for those customers who already have a version of Access. The app worksfine
with anything 2000 or newer, except for this reference.MDEs.
"Douglas J Steele" wrote:
I believe that the problem is that while Access is capable of handling
certain Reference changes from version to version in MDBs, it can't in
platform
You can use code like the following to check the references in another
database:
Sub ListReferences()
Dim appAccess As Access.Application
Dim refCurr As Reference
Dim strDatabase As String
strDatabase = "full path to database"
Set appAccess = New Access.Application
appAccess.OpenCurrentDatabase strDatabase
For Each refCurr In appAccess.References
If refCurr.IsBroken = False Then
Debug.Print refCurr.Name & _
" (" & refCurr.Major & "." & refCurr.Minor & ")"
Else
Debug.Print "Broken reference: " & refCurr.Guid
End If
Next refCurr
appAccess.CloseCurrentDatabase
Set appAccess = Nothing
End Sub
If you're distributing to customers who are running on a different
theirthat you use, you really should be at least testing the application on
PC orplatform before distributing to them. Look into something like Virtual
references?VMWare to eliminate the need for multiple pieces of hardware.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Brian" <Brian@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7F3E1400-9B06-407B-96DF-25CD25AC91B2@xxxxxxxxxxxxxxxx
Pardon my ignorance here, but shouldn't the MDB use the same
so IDoes
something happen in the MDE compilation process that disallows the XPmachine
to use its own references as it would when using the MDB?
Before I saw your reply, I thought it might be a service pack issue,
unrecognizedinstalled Office XP SP3, and now the MDE says the DB is in an
formatformat (MDB is still fine) on the affected PC. This was in XP/2003
theand
compiled to MDE on my dev PC. I copied the MDB and compiled the MDE on
aretarget PC, and it is just fine.
I just checked the references on the dev & target PC's, and the DLLs
forin
the correct paths. The ONLY difference is the Office 10/Office 11 path
each PCthe MS Access 10.0/11.0 Object Library, which appears correctly on
hourswhen I open the MDB. Is there a way to check the pre-compiled MDEreference
on the target PC?
Just a note on Access: it is very frustrating spending hundreds of
harddeveloping an app like this, only to wind up with clients saying itdoesn't
work due to some Access platform issue entirely unrelated to all my
Tools,work...uses 10.0
Thanks.
"Klatuu" wrote:
It probably is a reference issue. 2003 uses 11.0 libraries and 2002
One the offending machine, install the mbd open VBA editor, check
steppingReferences. See if any are missing.
Here is a site that may be useful:
http://support.microsoft.com/default.aspx?scid=kb;en-us;283115
Also, you did not say where the error occured. Have you tried
Pc's todomainthrough in Debug mode to see if you can tell where it fails?
Looking at you Startup function, the first thing I see is a DFirst
library. Itaggregate function. I am not sure, but I think it is in the DAO
is 3.6 for both Access versions, but I would check the offending
server (abe
references.sure they have that DLL and it is in the path specified in the
"Brian" wrote:
I have an FE/BE app that works fine on all PC's & a terminal
andfails onmixture of Access and Access runtime) when run as an MDB, but but
two PC's when distributed as an MDE. If I distribute it as an MDB
error:compile
workstation isto MDE on the workstation, the MDE works fine, though. My dev
workstationsAccess 2003 (Office Pro with VB Tools), and at least one of the
on which it fails is Access 2002 (full version). Here is the
beingcan't find.
The expression you entered has a function name that <my app name>
every
How can I locate this? I have error-trapping in every procedure on
form, and this message is an indication that the error is not
alltrapped.
flexibility than
I have this startup methodology that provides a little more
form)using startup options to open a form:
AutoExec Macro: RunCode - Function Startup()
The Startup function is in a standalone module (i.e. not behind a
Function Startup()
DataFileName = DFirst("[DataFileName]", "[Version]")
DemoVersion = False
DemoLength = 30
DoCmd.OpenForm "Login"
End Function
The three variables, DataFileName, DemoVersion, and DemoLength are
inpublic variables declared (one in in this module and the other two
mostanother
module).
I do have a host of other functions in my app, but this is the
otherlikely
candidate because, although my login form does call a couple of
occurstartup.functions from other modules, this is the first one that runs on
Any ideas? Or at least how to isolate the issue and why it would
only
in the MDE?
- Follow-Ups:
- Re: Function name not found
- From: Douglas J. Steele
- Re: Function name not found
- References:
- RE: Function name not found
- From: Brian
- Re: Function name not found
- From: Douglas J Steele
- Re: Function name not found
- From: Brian
- Re: Function name not found
- From: Douglas J Steele
- RE: Function name not found
- Prev by Date: Re: How to Change the Source Object for a Subreport with a CountThem Control
- Next by Date: Re: Function name not found
- Previous by thread: Re: Function name not found
- Next by thread: Re: Function name not found
- Index(es):
Relevant Pages
|
Loading