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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to have query select 1st record if several records are same

Status
Not open for further replies.

alyzar

Technical User
Joined
Aug 10, 2007
Messages
2
Location
US
Greetings,
I have some mediacre fee shcedules that contain "CPT Codes" which contain codes that have several different fee's associated with them.
Example:
CPT CODE
10021 $$$$
10021 $$$$
10021 $$$$

What I would like to do is have a query select just the first record when there is are multiple selections. Is this possible?

Thanks

Brad
 
I doubt this is possible without having another column or columns that identify the order. If there are no other unique columns/fields then you may be out of luck.

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]
 
Do you mean lowest?

[tt]SELECT Code, Min(Fee) FROM tblTable GROUP BY Code[/tt]
 
I downloaded again the .csv file from medicare's site and there was another column, which i did not see the first time. There is a column "Note" which has "#" next to the data that I require. So in the query i placed "#" in hte criteria area.

Thanks

Brad
 
You aren't answering any questions or providing any additional required information. Can you be more specific or provide sample data and the exact records you want to select?

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]
 
Duane, I think that Brad has solved his issue ...
 
Oh, you must have found your crystal ball ;-)

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