missing entries select query
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Missing Entries from Select Query

Missing Entries from Select Query

resolvedResolved · Medium Priority · Version 2003

replyReply Fri 14 Jan 2011, 12:30Delegate Betty said...

Betty has attended:
Access Intermediate course
Access Advanced course

Missing Entries from Select Query

Hi,

Is there any reason why a select query not running for only a specific data?

I am having problem to generate a report which runs after a Select Query (extracted from two tables).

The query extracted some data but not all of the data from the table.

Query details:
The query is built to have field types:
A, B, C - where the records are extracted from a table
D, E, F - calculative fields in the query.
Field C has a filter to include data type 1 and type 2. No other filter is input in the query.

I have tried testing few scenarios and the conclusion is that only a few a specific data does not generate for example:

For the following data in the table (Fields=Record):
A=1; B=1; C=1
A=1; B=1; C=2
A=1; B=1; C=3
A=1; B=2; C=1
A=1; B=2; C=2
A=1; B=2; C=3
A=2; B=1; C=1
A=2; B=1; C=2
A=2; B=1; C=3
A=2; B=2; C=1
A=2; B=2; C=2
A=2; B=2; C=3

The query generates the following combination
A=1; B=1; C=1
A=1; B=1; C=2
A=1; B=2; C=1
A=2; B=1; C=1
A=2; B=1; C=2
A=2; B=2; C=1
A=2; B=2; C=2

and it does not generate
A=1; B=2; C=2

(it will not generate the condition when C=3 because there is a filter in field C to only include record 1 and 2)

The odd thing is that in the test copy database, the query works fine. (the test copy has exactly the same format but just different test data input)

I had tried the following before but getting no result.
1) Re-run the query (by clicking the Run button)
2) Compact and Restore the database

Is this one of the case where the database is corrupted? Is there any other way to correct this other than re-inputting live data using a copy of the test version?

Many thanks in advance
Betty

For upcoming training course dates see: Pricing & availability

replyReply Wed 26 Jan 2011, 13:34Trainer Stephen said...

RE: Missing Entries from Select Query

Hi Betty

Thanks for your question

It is hard to answer this without seeing the query designer. Could you take a screen print of the query designer and email it to me at sw

I will then get back to you

Regards

Stephen

 

Please browse our web site to find out more about
microsoft database training and other Microsoft training courses.

Access tip:

Space marks

It is good practice not i to have space marks for field names as this can lead to problems when using queries or VBA code. It is much better to use an underscore charcter to represent spaces in field names

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard