Advertisement

07.23.2008 at 09:28AM PDT, ID: 23589126
[x]
Attachment Details

Problem with SELECT TOP 1 query

Asked by SeanStrickland in Microsoft Access Database, SQL Query Syntax

Tags: Access, 97, SQL, SELECT, TOP, VALUES

I have a query where I am simply trying to get a single record returned from a table.  The following is very similar to what I have.  There are 145 items in the table, and it pulls all 145 instead of the first entry.

I have an ORDER BY statement (excluded) that sorts by date received for me.  The idea is to funnel these items into a bucket and pull them one by one.  Need the SELECT TOP 1 query as multiple users are working out of this at the same time.

SELECT TOP 1 tbl_Master_Items.FieldName, tbl_Master_Items.FieldName, tbl_Master_Items.FieldName, tbl_Master_Items.FieldName, tbl_Master_Items.FieldName, tbl_Master_Items.FieldName, tbl_Master_Items.FieldName, tbl_Master_Items.FieldName, tbl_Master_Items.FieldName
FROM tbl_Master_ItemsStart Free Trial
[+][-]07.23.2008 at 09:43AM PDT, ID: 22071112

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 09:47AM PDT, ID: 22071165

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 09:49AM PDT, ID: 22071179

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 11:09AM PDT, ID: 22072117

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 11:37AM PDT, ID: 22072417

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, SQL Query Syntax
Tags: Access, 97, SQL, SELECT, TOP, VALUES
Sign Up Now!
Solution Provided By: peter57r
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906