Solved

How to know where my query in the vb code

Posted on 2008-10-08
5
154 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 85

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 51

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 51

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Suggested Courses
Course of the Month9 days, 23 hours left to enroll

623 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