473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Work with XP but not 2000? Access 2000

I'm using the replace function in an unbound text field to clean up
some data. I have Access 2000 on both an XP and 2000 machines. When
I use this DB on an XP machine works great last a long time.... When
I put it one a 2000 machine the field display #Name? instead of the
data and when I go to Properties/Control source I get an error "The
object doesn't contain the Automation object 'Replace."
Here is the value of Control Source
"=IIf([AreaCode]<>"",Replace([AreaCode],"~"," "),[AreaCode])"
Is there something else I can do to achieve this same result or
something I can turn on to allow this to work on 2000 box
Nov 13 '05 #1
2 1296
Yes, A2000 only partially implemented the functions listed below. They seem
to work on some computers, but not others, and the workaround is to create a
VBA wrapper for each function you need to use, and call that instead.
Unfortunately, a VBA function runs *really* slowly in queries in later
versions, so you kinda can't win here.

See knowledgebase article:
http://support.microsoft.com/?id=225956

Affected functions:
FormatCurrency(), FormatDateTime(), FormatNumber(), FormatPercent(),
InStrRev(), MonthName(), Replace(), Round(), StrReverse() and WeekdayName()

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"N. Graves" <ng*****@REMOVEyahoo.com> wrote in message
news:pf********************************@4ax.com...
I'm using the replace function in an unbound text field to clean up
some data. I have Access 2000 on both an XP and 2000 machines. When
I use this DB on an XP machine works great last a long time.... When
I put it one a 2000 machine the field display #Name? instead of the
data and when I go to Properties/Control source I get an error "The
object doesn't contain the Automation object 'Replace."
Here is the value of Control Source
"=IIf([AreaCode]<>"",Replace([AreaCode],"~"," "),[AreaCode])"
Is there something else I can do to achieve this same result or
something I can turn on to allow this to work on 2000 box

Nov 13 '05 #2
> something I can turn on to allow this to work on 2000 box

Yes, you need to apply all Office and Jet service packs to the
Office 2000 box, and you may need to check the references in
the VBA Project of the database.

If you are using Access 2000, you must in any case use at least
SR1 for Office 2000, so this is something you need to check anyway.

(david)
"N. Graves" <ng*****@REMOVEyahoo.com> wrote in message
news:pf********************************@4ax.com...
I'm using the replace function in an unbound text field to clean up
some data. I have Access 2000 on both an XP and 2000 machines. When
I use this DB on an XP machine works great last a long time.... When
I put it one a 2000 machine the field display #Name? instead of the
data and when I go to Properties/Control source I get an error "The
object doesn't contain the Automation object 'Replace."
Here is the value of Control Source
"=IIf([AreaCode]<>"",Replace([AreaCode],"~"," "),[AreaCode])"
Is there something else I can do to achieve this same result or
something I can turn on to allow this to work on 2000 box

Nov 13 '05 #3

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

Similar topics

1
by: j.mandala | last post by:
I created a simple link between two tables in a query. TableA has Social Security numbers stored as Long Integer Data. (I imported this table). The Join is between these two fields Table ...
4
by: Barry Young | last post by:
I have Access 2000 installed on a machine and I create the MDE just fine. When I copy the MDE file over to another machine that has Access 2000 installed, the references are hosed and I get unable...
8
by: mheden | last post by:
Hello all, I'm using an Access 97 front-end with a SQL Server 2000 back-end. One particular bit of code runs a stored procedure to obtain a rowcount from one of the back-end tables. This works...
4
by: Neil | last post by:
I just noticed that control tips aren't working in any of my databases. I recently installed Access 2003, and created a database in it, and noticed that control tips weren't working in my controls....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.