473,806 Members | 2,565 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I find all instances of "tblCFClientCha nges" 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 1513

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**@NorthStat e.net> wrote in message
news:r6******** *************** *********@4ax.c om...
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 = "tblCPCLientCha nges"

For each qd in currentdb.query defs
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 tblCPCLientChan gesDetail, this will
return a positive result. You can change sFind to

sFind = "tblCPCLientCha nges "
or
sFind = "tblCPCLientCha nges."
or
sFind = "[tblCPCLientChan ges]"

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.conta iners("Modules" ).document ("document" is the
module name)

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

Good luck.

Matthew Wells
MW****@FirstByt e.net



"MLH" <CR**@NorthStat e.net> wrote in message
news:r6******** *************** *********@4ax.c om...
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?
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxx
I've used this a lot...

Dim qd as dao.querydef
dim sFind as string
sFind = "tblCPCLientCha nges"

For each qd in currentdb.query defs
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 tblCPCLientChan gesDetail, this will
return a positive result. You can change sFind to

sFind = "tblCPCLientCha nges "
or
sFind = "tblCPCLientCha nges."
or
sFind = "[tblCPCLientChan ges]"

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.conta iners("Modules" ).document ("document" is the
module name)

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

Good luck.

Matthew Wells
MW****@FirstBy te.net



"MLH" <CR**@NorthStat e.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
8990
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 the name mysql might have made a database file under? Where is it stored? Just curious. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx mlh@appserver mlh $ mysql / -u root -p
1
1515
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 *credifree* - ideas as to why not? From the captured screen-text below, you can see that the credifree database does indeed exist... mlh@appserver mlh $ mysql -u root -p Enter password:
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9597
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10620
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10372
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9187
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5682
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.