473,408 Members | 2,427 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,408 software developers and data experts.

Some string functions not working

Wherever i use mid,right,left,format functions it gives me an error "Cannot find the library or Object". What is the solution? Pls someone throw some light on this.
Oct 7 '13 #1
2 3387
zmbd
5,501 Expert Mod 4TB
<alt><F11>
Menu/RibbonBar:Tools:References

In the pop-up dialog box; make sure that that you have at least the following references selected:
(for Acc2010, your versions numbers may be different)
  • Visual Basic For Applications
  • Microsoft Access 14.0 Object Library
  • OLE Automation
  • Microsoft Office 14.0 Access database engine Object Library

Because I use a lot of Excel, ADOX, and Explorer I also have the following selected - these are normally optional and allow for early binding:
  • Microsoft Internet Controls
  • Microsoft Excel 14.0 Object Library
  • Microsoft ActiveX Data Objects 6.1 Library

make any other selections for tools you use and select [OK]

Otherwise you are looking at something that damaged your install... the easiest fix is the self repair option in office; however, we'll need to know which version of both Windows (or what operating system) and which version of Office you are using before I can tell you how to reach that tool (or you can use the [F1] key, the help-link within office, or an internet search engine and locate it that way)
Oct 7 '13 #2
NeoPa
32,556 Expert Mod 16PB
These functions are to be found in the VBA.Strings class. That is, the "Visual Basic For Applications" library and the "Strings" class within that.

As this library is one of the defaults that should always be included, it would seem that someone has actually deselected it for some reason or, more likely, you have a dodgy install. The former is fixed easily. The latter requires a re-install where you must ensure Access is fully installed with at least the VBA and coding facility selected.
Oct 8 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: John F Dutcher | last post by:
There must be a 'fundamental' reason why 'string' functions are reported as 'not found' even though the 'import string' statement is present. If the script has user-defined functions at its...
0
by: Igor2004 | last post by:
Ladies and Gentlemen, I would like to offer you the following string functions Transact-SQL GETWORDCOUNT() Counts the words in a string GETWORDNUM() Returns a specified word from a string...
1
by: Quentin Huo | last post by:
Hi: I have several classes and they have some same common functions like write a property value to a text file, or read from the file to a property. I did as followed: I created an abstract...
1
by: George | last post by:
I am new to VB, I need 2 string functions to return last char and remove last char. I made them up. Am I recreating the wheel? do similar functions exist in String? I could not find them ...
12
by: Anoop | last post by:
Hi All Can any one help me out with the various depricated string functions that is followed in Python. For example how will be string.lower depricated. As far as string.lower('PYTHON') is...
3
by: Hitesh | last post by:
Hi, In python doc -- 4.1.4 Deprecated string functions -- I read that "The following list of functions are also defined as methods of string and Unicode objects; see ``String Methods'' (section...
4
by: xdevel | last post by:
Hi, if I want to read the string functions source code (i.e. strcpy, strtok etc.) where can I find them?
9
by: Ben Bacarisse | last post by:
I am porting a program from the Windows world to the Linux world. The source uses MS's new "safer" string functions such as: strcat_s(dest, size, source); but there are also calls such as: ...
15
by: Cartoper | last post by:
There is one little static C library to manage the serial number and unlock key for my application. Today it is compiled with Microsoft VC6 and linked into both VC6 modules and VS2005 modules. It...
1
by: Arthur Dent | last post by:
I was wondering, ... does anyone know off hand which is faster? I've seen articles where people suggest the method of using XML literals to build strings... something like: Dim s As String =...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.