Solved

How to know where my query in the vb code

Posted on 2008-10-08
5
148 Views
Last Modified: 2012-05-05
i have a query called "search" in access object

i need to know where the code is called in my vb developed application.

how can i find that ?
0
Comment
Question by:jaisonshereen
5 Comments
 
LVL 84

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 100 total points
Comment Utility
By "vb developed application" do you mean you have an application in Visual Basic, or you have an Access application with VBA code? They are two entirely different things ...

For Access - Rick Fisher's Find and Replace will do it: www.rickworld.com

For either - MZ tools may be able to do this: www.mz-tools.com.
0
 
LVL 49

Expert Comment

by:Gustav Brock
Comment Utility
Pick Find from the menu. Look for "Search". Select last option Entire project.

/gustav
0
 

Author Comment

by:jaisonshereen
Comment Utility
Pick Find from the menu. Look for "Search". Select last option Entire project.

this meathod is not working , i cannot find any "query"

But in database window i can see the query

so ..is it mandatory that , i will not be having a "query" which is there in database window , is mandatory in the vb code ?

LSMConsulting:

it is an access application with vba code !
0
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 200 total points
Comment Utility
> i cannot find any "query"

Then your query is not executing from code.

A query object is not generated with VBA code. It lives by itself.

/gustav
0
 
LVL 65

Assisted Solution

by:RobSampson
RobSampson earned 200 total points
Comment Utility
Hi, try picking Find from the menu. Look for "select", then select to search the Entire project.

If there is no SELECT query in the code, then look for
DoCmd.OpenQuery
or
DoCmd.RunSQL

Regards,

Rob.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now