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

How can I find all instances of "tblCFClientChanges" in an Access 97 database?

MLH
Mainly, I want to search the saved queries.
I don't want to replace them. I just want to find them.
Nov 13 '05 #1
6 1497

MLH wrote:
Mainly, I want to search the saved queries.
I don't want to replace them. I just want to find them.


Read this:
http://www.mvps.org/access/resources/products.htm

Nov 13 '05 #2

MLH wrote:
Mainly, I want to search the saved queries.
I don't want to replace them. I just want to find them.


Read this:
http://www.mvps.org/access/resources/products.htm

failing that, you could loop through the SQL property of all your
queries and use InStr and Replace and all that, but that's probably a
huge pain.

Nov 13 '05 #3
Per MLH:
Mainly, I want to search the saved queries.
I don't want to replace them. I just want to find them.


FindAndReplace: http://www.rickworld.com/

Couldn't live without it.
--
PeteCresswell
Nov 13 '05 #4
In addition to the Find & Replace, you can try the Search function of
mztools: www.mztools.com. It does a fine job and you can't beat the price.

"MLH" <CR**@NorthState.net> wrote in message
news:r6********************************@4ax.com...
Mainly, I want to search the saved queries.
I don't want to replace them. I just want to find them.

Nov 13 '05 #5
I've used this a lot...

Dim qd as dao.querydef
dim sFind as string
sFind = "tblCPCLientChanges"

For each qd in currentdb.querydefs
if instr(1, qd.sql, sfind, vbTextCompare) > 0 then
debug.print qd.name
end if
next qd

This also check rowsources for listboxes and combo boxes and they are
querydefs also. Be careful - if you have tables or other text that include
the string you're searching for, such as tblCPCLientChangesDetail, this will
return a positive result. You can change sFind to

sFind = "tblCPCLientChanges "
or
sFind = "tblCPCLientChanges."
or
sFind = "[tblCPCLientChanges]"

That takes care of queries. There are third party software packages that
analyze Access databases, such as FMS software. There are also tools in
later versions of access that convert macros to modules. I think you can
still open a module in '97 as

dim doc as document
set doc currentdb.containers("Modules").document ("document" is the
module name)

and read line by liine and do the same search string.

Good luck.

Matthew Wells
MW****@FirstByte.net



"MLH" <CR**@NorthState.net> wrote in message
news:r6********************************@4ax.com...
Mainly, I want to search the saved queries.
I don't want to replace them. I just want to find them.

Nov 13 '05 #6
MLH
Thanks, Matthew. Do you know if this
will work for me in Access 2.0?
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've used this a lot...

Dim qd as dao.querydef
dim sFind as string
sFind = "tblCPCLientChanges"

For each qd in currentdb.querydefs
if instr(1, qd.sql, sfind, vbTextCompare) > 0 then
debug.print qd.name
end if
next qd

This also check rowsources for listboxes and combo boxes and they are
querydefs also. Be careful - if you have tables or other text that include
the string you're searching for, such as tblCPCLientChangesDetail, this will
return a positive result. You can change sFind to

sFind = "tblCPCLientChanges "
or
sFind = "tblCPCLientChanges."
or
sFind = "[tblCPCLientChanges]"

That takes care of queries. There are third party software packages that
analyze Access databases, such as FMS software. There are also tools in
later versions of access that convert macros to modules. I think you can
still open a module in '97 as

dim doc as document
set doc currentdb.containers("Modules").document ("document" is the
module name)

and read line by liine and do the same search string.

Good luck.

Matthew Wells
MW****@FirstByte.net



"MLH" <CR**@NorthState.net> wrote in message
news:r6********************************@4ax.com.. .
Mainly, I want to search the saved queries.
I don't want to replace them. I just want to find them.


Nov 13 '05 #7

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

Similar topics

10
by: MLH | last post by:
I have a database named credifree. I did it with mysql's create command. Yet, I can find no files on my linux box except for a\ directory and a gif file that have the name credifree. Why? What's...
1
by: MLH | last post by:
I asked mysql to create a database named credifree (see below) and later checked for filenames on the system like *credifree* but I found nothing indicating that mysql created any filenames like...
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
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
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
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
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,...

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.