473,486 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

InStrRev equivalent for Access97

I have a client who can't get off of Access97. I want to use the
InStrRev function, but it's not available in 97. Is the function's code
available? Is there any equivalent functions for 97?

Thanks in advance.

Nov 12 '05 #1
2 5815
You have to code your own, looping backwards through the characters of the
string to find the substring you want. Mid() and Len() will be useful.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html

"William Ortenberg" <bi*****@pacbell.net> wrote in message
news:xa****************@newssvr29.news.prodigy.com ...
I have a client who can't get off of Access97. I want to use the
InStrRev function, but it's not available in 97. Is the function's code
available? Is there any equivalent functions for 97?

Thanks in advance.

Nov 12 '05 #2
"Chuck Grimsby" <c.*******@worldnet.att.net.invalid> wrote in message
news:2q********************************@4ax.com...


You may want to grab the "modVB6Functions" code from Knowledgebase
article Q188007 ("HOWTO: Simulate Visual Basic 6.0 String Functions in
VB5"). The modVB6Functions module includes the InStrRev function.

Although written for VB5, the code can be pasted into a Access 97
module to provide the functions in Access 97 that are present in
Access 2K and XP.

Note: Some changes have to be made due to differences in VBA and VB,
but nothing that isn't just a simple code change like changing:

Optional bCompare As VbCompareMethod = _
vbBinaryCompare

To

Optional bCompare As Long = 2)


Actually, you can use

Optional bCompare As Long = _
vbBinaryCompare

The constant still exists in Access: you just can't refer to the Enum.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele


Nov 12 '05 #3

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

Similar topics

5
4051
by: Chris Dugan | last post by:
Hi, has anybody come across a solution to running an Access97 database on Windows XP. The situation I have is an Access 97 database that runs perfectly from Win95/98 clients running Access97, the...
1
2619
by: Mario Crevits | last post by:
My name is Mario Crevits, I'm from Belgium (Roeselare) and I'm working with Access97 for several years now. We are in an Access97-2000 migration project. I'm writing a wizard for the end-users to...
0
1306
by: Bob Hynes | last post by:
Hi All, In one of my Access97 db applications I created a report which I output to a RichTextFormat file attach it to an Email and send it out, that has worked just fine for a couple of years now....
1
1414
by: George | last post by:
I have an application in Access97 which operates very normal on pc's with Win98 S.E. as an operating system.When I install the same application on a PC wich runs Windows 2000 Server (and...
7
5011
by: alanwo | last post by:
Hi Experts, Connected to Access MDB file using ADO.net OLEDB, I have a SQL to get file extension from file name which is stored as field. SELECT Right(FileName, Len(FileName) -...
5
3641
by: sck10 | last post by:
Hello, I am converting a DataList from vb to c#. I am having a problem converting the Mid function with InStrRev to c#. Any help with this would be appreciated. <asp:DataList...
1
1824
by: IamKJVonly | last post by:
I have office 97 which includes access97 and have built many access97 databases and use VB4 as the front end. I have just gotten a new computer which has 1 gig of memory on it and when I try to...
4
4951
by: Andrew | last post by:
One year ago I have programmed in VB. There was a function named "InStrRev". In C# I don't have found a similar function. Can anybody help me in this question. Thanks a lot regards andrew
3
1942
by: Ramchandar | last post by:
Hi, I am creating reports using VBA code. I have the same query in a querydef residing both in Access97 and Access2003. The result of this querydef is then moved to a table in Access97 and...
0
7100
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
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
7126
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
7330
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...
1
4865
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...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3070
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.