By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,526 Members | 2,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,526 IT Pros & Developers. It's quick & easy.

Unclear error message by using Left, Mid and Right

P: n/a
Dear reader,

Some times I receive an error message by using the functions:

Left([FieldName...];2)

Mid([FieldName...];5;2)

Right([FieldName...];2)

It works on one PC and it can fail on the other one.

I can't find which library is required in the VBA references to ovoid the
error message for using these functions. The error message is "Undefined
function 'Mid' in expression".

Thanks in advance for any help.

Kind regards,

Simon
Sep 30 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Sat, 30 Sep 2006 22:36:36 +0200, Simon wrote:
Dear reader,

Some times I receive an error message by using the functions:

Left([FieldName...];2)

Mid([FieldName...];5;2)

Right([FieldName...];2)

It works on one PC and it can fail on the other one.

I can't find which library is required in the VBA references to ovoid the
error message for using these functions. The error message is "Undefined
function 'Mid' in expression".

Thanks in advance for any help.

Kind regards,

Simon
That PC has a missing reference.
Open any module in Design view (or click Ctrl + G).
On the Tools menu, click References.
Click to clear the check box for the type library or object library
marked as "Missing:."

An alternative to removing the reference is to restore the referenced
file to the path specified in the References dialog box. If the
referenced file is in a new location, clear the "Missing:" reference
and create a new reference to the file in its new folder.

See Microsoft KnowledgeBase articles:
283115 'ACC2002: References That You Must Set When You Work with
Microsoft Access'
Or for Access 97:
175484 'References to Set When Working With Microsoft Access' for
the correct ones needed,
and
160870 'VBA Functions Break in Database with Missing References' for
how to reset a missing one.

For even more information, see
http://www.accessmvp.com/djsteele/Ac...nceErrors.html
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Sep 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.