Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String functions in Access 2000

Status
Not open for further replies.

Ham

Technical User
Feb 23, 2000
122
US
I converted a database from Access97 to Access2000. The database has a lot of VB modules in it doing string manipulation. However, the functions Right$, Left$, etc. no longer work. I'm assuming I need some sort of object library that isn't being referenced now. Here's what's in the reference list currently: 'Visual Basic For Applications'; 'Microsoft Access 9.0 Object Library'; 'Microsoft DAO 2.5/3.5 Compatibility Library'; 'MISSING: UTILITY.MDA'; 'OLE Automation'; and 'Microsoft Visual Basic for Applications Extensibility 5.3'. I have no idea what that 'MISSING:..' means, but I would guess it isn't good news. I certainly would appreciate any help/suggestions anyone might have. Thanks. -- Ham
 
Ham,<br>
I've had similar problems, I think 2000 no longer by default includes the library with those functions. Open a module, go to Tools¦References, and add (I think it's Da03.6 or MS Access 9.0 OLB). Anyway, the problem goes away when the correct reference is added)<br>
--Jim
 
Drop the $ sign<br>
just use Left<br>
<br>
Then Dim your variable as a string<br>
<br>
Dim MyVar as string<br>
x = Left(MyVar,1) <p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
 
Yes but the key word is &quot;OLD&quot;<br>
She don't always work anymore.<br>
So I've dropped it from my usage.<br>
<br>
<p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
 
Thanks for the quick replies. I did exchange MS DAO 2.5/3.5 Library for the MS DAO 3.6 Object Library. That by itself did not resolve the issue. The MISSING: UTILITY.MDA entry bothered me, so I did rummage through the computer and find 2 utility.mda files. I used the browser of the references dialog box to add the newer of the 2 utility.mda files to the references list. That did take care of the problem.<br>
<br>
Thanks again for your responses. -- Ham Rutledge
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top