Undefined function '[Right$]' in expression in a query after upgra

G

Guest

We recently upgraded from Office 2000 to Office 2003. After doing so our
string functions don't seem to work anymore. When I attempt to run a query
that used to display the 5 rightmost characters of one field, I now get an
error message:
Undefined function '[Right$]' in expression in a query after upgrade

The expression looks something like this Password: [Right$]([Residual
Apps]!Info,5). (I changed the field name and table name for security reasons).

Any ideas on how to fix this?

Thanks!
 
F

fredg

We recently upgraded from Office 2000 to Office 2003. After doing so our
string functions don't seem to work anymore. When I attempt to run a query
that used to display the 5 rightmost characters of one field, I now get an
error message:
Undefined function '[Right$]' in expression in a query after upgrade

The expression looks something like this Password: [Right$]([Residual
Apps]!Info,5). (I changed the field name and table name for security reasons).

Any ideas on how to fix this?

Thanks!

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/AccessReferenceErrors.html
 
G

Guest

When I attempt to select the Microsoft ActiveX Data Objects 2.1 Library
Reference (Msado21.tlb) checkbox and click OK, I get the following message:


Name conflicts witrh existing module, pproject, or object library.

What next?

Thanks!

--
Charles


fredg said:
We recently upgraded from Office 2000 to Office 2003. After doing so our
string functions don't seem to work anymore. When I attempt to run a query
that used to display the 5 rightmost characters of one field, I now get an
error message:
Undefined function '[Right$]' in expression in a query after upgrade

The expression looks something like this Password: [Right$]([Residual
Apps]!Info,5). (I changed the field name and table name for security reasons).

Any ideas on how to fix this?

Thanks!

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/AccessReferenceErrors.html
 
D

Douglas J. Steele

Do you already have some other version of ADO selected?

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Charles said:
When I attempt to select the Microsoft ActiveX Data Objects 2.1 Library
Reference (Msado21.tlb) checkbox and click OK, I get the following
message:


Name conflicts witrh existing module, pproject, or object library.

What next?

Thanks!

--
Charles


fredg said:
We recently upgraded from Office 2000 to Office 2003. After doing so
our
string functions don't seem to work anymore. When I attempt to run a
query
that used to display the 5 rightmost characters of one field, I now get
an
error message:
Undefined function '[Right$]' in expression in a query after upgrade

The expression looks something like this Password: [Right$]([Residual
Apps]!Info,5). (I changed the field name and table name for security
reasons).

Any ideas on how to fix this?

Thanks!

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/AccessReferenceErrors.html
 
G

Guest

Yes -

Active X Data Objects 2.6
ADO Extension 2.8 for DDL and Security
Active X Data Objects (Multi-Dimensional) 2.8

Do I need to remove one of these to get my string functions back?

Thanks!

- C

--
Charles


Douglas J. Steele said:
Do you already have some other version of ADO selected?

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Charles said:
When I attempt to select the Microsoft ActiveX Data Objects 2.1 Library
Reference (Msado21.tlb) checkbox and click OK, I get the following
message:


Name conflicts witrh existing module, pproject, or object library.

What next?

Thanks!

--
Charles


fredg said:
On Thu, 15 Dec 2005 15:43:02 -0800, Charles wrote:

We recently upgraded from Office 2000 to Office 2003. After doing so
our
string functions don't seem to work anymore. When I attempt to run a
query
that used to display the 5 rightmost characters of one field, I now get
an
error message:
Undefined function '[Right$]' in expression in a query after upgrade

The expression looks something like this Password: [Right$]([Residual
Apps]!Info,5). (I changed the field name and table name for security
reasons).

Any ideas on how to fix this?

Thanks!

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/AccessReferenceErrors.html
 
D

Douglas J. Steele

If you have ADO 2.6, there's no reason to try and add ADO 2.1

In a nutshell, the instructions for fixing References problems are:

On the machine(s) where it's not working, open any code module. Select Tools
| References from the menu bar. Examine all of the selected references.

If any of the selected references have "MISSING:" in front of them, unselect
them, and back out of the dialog. If you really need the reference(s) you
just unselected (you can tell by doing a Compile All Modules), go back in
and reselect them.

If none have "MISSING:", select an additional reference at random, back out
of the dialog, then go back in and unselect the reference you just added. If
that doesn't solve the problem, try to unselect as many of the selected
references as you can (Access may not let you unselect them all), back out
of the dialog, then go back in and reselect the references you just
unselected. (NOTE: write down what the references are before you delete
them, because they'll be in a different order when you go back in)


--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Charles said:
Yes -

Active X Data Objects 2.6
ADO Extension 2.8 for DDL and Security
Active X Data Objects (Multi-Dimensional) 2.8

Do I need to remove one of these to get my string functions back?

Thanks!

- C

--
Charles


Douglas J. Steele said:
Do you already have some other version of ADO selected?

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



"Charles" <CUdell(reversetheloatoaolandremovebetweenparens)@loa.com>
wrote
in message news:[email protected]...
When I attempt to select the Microsoft ActiveX Data Objects 2.1 Library
Reference (Msado21.tlb) checkbox and click OK, I get the following
message:


Name conflicts witrh existing module, pproject, or object library.

What next?

Thanks!

--
Charles


:

On Thu, 15 Dec 2005 15:43:02 -0800, Charles wrote:

We recently upgraded from Office 2000 to Office 2003. After doing
so
our
string functions don't seem to work anymore. When I attempt to run
a
query
that used to display the 5 rightmost characters of one field, I now
get
an
error message:
Undefined function '[Right$]' in expression in a query after upgrade

The expression looks something like this Password:
[Right$]([Residual
Apps]!Info,5). (I changed the field name and table name for security
reasons).

Any ideas on how to fix this?

Thanks!

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/AccessReferenceErrors.html
 
G

Guest

Okay -

I tried all of that, then restarted Access and the application, and am still
getting the same error. What library reference contains the String
functions? Perhaps it is corrupted.

Unless you have another thought.

Thanks!

- C
--
Charles


Douglas J. Steele said:
If you have ADO 2.6, there's no reason to try and add ADO 2.1

In a nutshell, the instructions for fixing References problems are:

On the machine(s) where it's not working, open any code module. Select Tools
| References from the menu bar. Examine all of the selected references.

If any of the selected references have "MISSING:" in front of them, unselect
them, and back out of the dialog. If you really need the reference(s) you
just unselected (you can tell by doing a Compile All Modules), go back in
and reselect them.

If none have "MISSING:", select an additional reference at random, back out
of the dialog, then go back in and unselect the reference you just added. If
that doesn't solve the problem, try to unselect as many of the selected
references as you can (Access may not let you unselect them all), back out
of the dialog, then go back in and reselect the references you just
unselected. (NOTE: write down what the references are before you delete
them, because they'll be in a different order when you go back in)


--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Charles said:
Yes -

Active X Data Objects 2.6
ADO Extension 2.8 for DDL and Security
Active X Data Objects (Multi-Dimensional) 2.8

Do I need to remove one of these to get my string functions back?

Thanks!

- C

--
Charles


Douglas J. Steele said:
Do you already have some other version of ADO selected?

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



"Charles" <CUdell(reversetheloatoaolandremovebetweenparens)@loa.com>
wrote
in message When I attempt to select the Microsoft ActiveX Data Objects 2.1 Library
Reference (Msado21.tlb) checkbox and click OK, I get the following
message:


Name conflicts witrh existing module, pproject, or object library.

What next?

Thanks!

--
Charles


:

On Thu, 15 Dec 2005 15:43:02 -0800, Charles wrote:

We recently upgraded from Office 2000 to Office 2003. After doing
so
our
string functions don't seem to work anymore. When I attempt to run
a
query
that used to display the 5 rightmost characters of one field, I now
get
an
error message:
Undefined function '[Right$]' in expression in a query after upgrade

The expression looks something like this Password:
[Right$]([Residual
Apps]!Info,5). (I changed the field name and table name for security
reasons).

Any ideas on how to fix this?

Thanks!

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/AccessReferenceErrors.html
 
D

Douglas J. Steele

In almost every case where it's complaining about VBA functions such as
Right$, the problem isn't the library that contains that function (FWIW,
it's contained in the Visual Basic for Applications reference). References
are like apples: one bad one spoils the whole bunch.

Are the square brackets around Right$ actually in the query's SQL? If so,
remove them. While you're at it, see whether just using Right, rather than
Right$, makes a difference.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Charles said:
Okay -

I tried all of that, then restarted Access and the application, and am
still
getting the same error. What library reference contains the String
functions? Perhaps it is corrupted.

Unless you have another thought.

Thanks!

- C
--
Charles


Douglas J. Steele said:
If you have ADO 2.6, there's no reason to try and add ADO 2.1

In a nutshell, the instructions for fixing References problems are:

On the machine(s) where it's not working, open any code module. Select
Tools
| References from the menu bar. Examine all of the selected references.

If any of the selected references have "MISSING:" in front of them,
unselect
them, and back out of the dialog. If you really need the reference(s) you
just unselected (you can tell by doing a Compile All Modules), go back in
and reselect them.

If none have "MISSING:", select an additional reference at random, back
out
of the dialog, then go back in and unselect the reference you just added.
If
that doesn't solve the problem, try to unselect as many of the selected
references as you can (Access may not let you unselect them all), back
out
of the dialog, then go back in and reselect the references you just
unselected. (NOTE: write down what the references are before you delete
them, because they'll be in a different order when you go back in)


--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



"Charles" <CUdell(reversetheloatoaolandremovebetweenparens)@loa.com>
wrote
in message news:[email protected]...
Yes -

Active X Data Objects 2.6
ADO Extension 2.8 for DDL and Security
Active X Data Objects (Multi-Dimensional) 2.8

Do I need to remove one of these to get my string functions back?

Thanks!

- C

--
Charles


:

Do you already have some other version of ADO selected?

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



"Charles" <CUdell(reversetheloatoaolandremovebetweenparens)@loa.com>
wrote
in message When I attempt to select the Microsoft ActiveX Data Objects 2.1
Library
Reference (Msado21.tlb) checkbox and click OK, I get the following
message:


Name conflicts witrh existing module, pproject, or object library.

What next?

Thanks!

--
Charles


:

On Thu, 15 Dec 2005 15:43:02 -0800, Charles wrote:

We recently upgraded from Office 2000 to Office 2003. After
doing
so
our
string functions don't seem to work anymore. When I attempt to
run
a
query
that used to display the 5 rightmost characters of one field, I
now
get
an
error message:
Undefined function '[Right$]' in expression in a query after
upgrade

The expression looks something like this Password:
[Right$]([Residual
Apps]!Info,5). (I changed the field name and table name for
security
reasons).

Any ideas on how to fix this?

Thanks!

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/AccessReferenceErrors.html
 
G

Guest

Douglas -

Removing the square brackets from the Right$ in the SQL view did the trick.
Not sure how they got there in the first place since I didn't put them there.
However, the function works again!

Many thanks for your advice!

--
Charles


Douglas J. Steele said:
In almost every case where it's complaining about VBA functions such as
Right$, the problem isn't the library that contains that function (FWIW,
it's contained in the Visual Basic for Applications reference). References
are like apples: one bad one spoils the whole bunch.

Are the square brackets around Right$ actually in the query's SQL? If so,
remove them. While you're at it, see whether just using Right, rather than
Right$, makes a difference.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Charles said:
Okay -

I tried all of that, then restarted Access and the application, and am
still
getting the same error. What library reference contains the String
functions? Perhaps it is corrupted.

Unless you have another thought.

Thanks!

- C
--
Charles


Douglas J. Steele said:
If you have ADO 2.6, there's no reason to try and add ADO 2.1

In a nutshell, the instructions for fixing References problems are:

On the machine(s) where it's not working, open any code module. Select
Tools
| References from the menu bar. Examine all of the selected references.

If any of the selected references have "MISSING:" in front of them,
unselect
them, and back out of the dialog. If you really need the reference(s) you
just unselected (you can tell by doing a Compile All Modules), go back in
and reselect them.

If none have "MISSING:", select an additional reference at random, back
out
of the dialog, then go back in and unselect the reference you just added.
If
that doesn't solve the problem, try to unselect as many of the selected
references as you can (Access may not let you unselect them all), back
out
of the dialog, then go back in and reselect the references you just
unselected. (NOTE: write down what the references are before you delete
them, because they'll be in a different order when you go back in)


--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



"Charles" <CUdell(reversetheloatoaolandremovebetweenparens)@loa.com>
wrote
in message Yes -

Active X Data Objects 2.6
ADO Extension 2.8 for DDL and Security
Active X Data Objects (Multi-Dimensional) 2.8

Do I need to remove one of these to get my string functions back?

Thanks!

- C

--
Charles


:

Do you already have some other version of ADO selected?

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



"Charles" <CUdell(reversetheloatoaolandremovebetweenparens)@loa.com>
wrote
in message When I attempt to select the Microsoft ActiveX Data Objects 2.1
Library
Reference (Msado21.tlb) checkbox and click OK, I get the following
message:


Name conflicts witrh existing module, pproject, or object library.

What next?

Thanks!

--
Charles


:

On Thu, 15 Dec 2005 15:43:02 -0800, Charles wrote:

We recently upgraded from Office 2000 to Office 2003. After
doing
so
our
string functions don't seem to work anymore. When I attempt to
run
a
query
that used to display the 5 rightmost characters of one field, I
now
get
an
error message:
Undefined function '[Right$]' in expression in a query after
upgrade

The expression looks something like this Password:
[Right$]([Residual
Apps]!Info,5). (I changed the field name and table name for
security
reasons).

Any ideas on how to fix this?

Thanks!

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/AccessReferenceErrors.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top