Solved

How to know where my query in the vb code

Posted on 2008-10-08
5
153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
ID: 22672533
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 50

Expert Comment

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

/gustav
0
 

Author Comment

by:jaisonshereen
ID: 22672664
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 50

Accepted Solution

by:
Gustav Brock earned 200 total points
ID: 22672745
> 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
ID: 22673339
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
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…

710 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