Solved

debug issue

Posted on 2008-10-08
12
140 Views
Last Modified: 2012-05-05
when i step into codes in vb

there is code called DoCmd.OpenQuery "Search"

how can i check whether the query is giving the right results?
0
Comment
Question by:jaisonshereen
  • 6
  • 6
12 Comments
 
LVL 75
ID: 22671296
Go to the database window, and open the query directly ... and look at the results.

mx
0
 

Author Comment

by:jaisonshereen
ID: 22671362
what do u mean by database window?
is the object ....queries in the left pane?
when i went there i can see the query "Search"

but the icon is different than others different

0
 
LVL 75
ID: 22671364
What type of query is 'search' ?

SELECT? or an Action query (Update, Append, etc) ?


mx
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:jaisonshereen
ID: 22671391
See this file and rounded in red
query.bmp
0
 

Author Comment

by:jaisonshereen
ID: 22671438
when i right click and take the design view i can see this:


search.JPG
0
 
LVL 75
ID: 22671449
ok ... it's an Append query.  

open in design view, then *temporarily* change it to a SELECT query - and run the query to see the results - which is what you would get  - if it actually does the Append.

mx
0
 

Author Comment

by:jaisonshereen
ID: 22671501
there was no row to append !

how can i know where this data comming from?
0
 
LVL 75
ID: 22671565
From the table in the query - in design view.

mx
0
 

Author Comment

by:jaisonshereen
ID: 22671657
can u explain what does the search.jpg mean?
0
 
LVL 75
ID: 22671700
no clue what you are referring to ... JPG ???

mx
0
 

Author Comment

by:jaisonshereen
ID: 22671722
ok from the second pic!!

Can u explain what the values represent ?
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 22671816
Your question was:

"how can i check whether the query is giving the right results?"

I explained how to do that ... and apparently there are no results.  You need to look at the data in the Table.

mx
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create tables in access db (2016)  using vba 13 41
Formula problem with Excel attachment 6 27
Access query expression 6 20
My SQL as Backend for Access 3 14
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

776 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