Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select Specific Record based on Absolute Value

Status
Not open for further replies.

bam720

Technical User
Sep 29, 2005
289
US
Maybe I am missing something but here goes...
I have the database full of records. I am using a datagrid to view the database (becuase its in Pocket PC) and the info i can get from the datagrid is it's absolute position. I would like to know how to SELECT the already selected record in the datagrid to bring it up by itself, but the only paramter i can get is its absolute position. for eg:
Abs: ID:
0 1
1 2
3 4
4 9
5 11

So you see how the absolute value has no correspondance to the iD number. Thanks in advance :)
 
Isn't this a PocketPC question?

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
well i was hoping that i could just write a SQL statement based on the infomration i did have.
 
I assume missing the "2" in your abs column is a typo.

If you are looking for the SQL syntax to create a rank/sequence number in a query, you can use a statement like:
Code:
SELECT (SELECT Count(*) FROM tblNoNameGiven n
  WHERE n.ID <tblNoNameGiven.ID) AS AbsPos, ID
FROM tblNoNameGiven;


Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top