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

Query acting strange

Status
Not open for further replies.

rtshort

IS-IT--Management
Feb 28, 2001
878
US
This may belong in the Access forum but I'm not sure.

I have the following query and use Access 2000. The query is ran in a VB Program. I've tried to run it in Access itself and get the same results though.

Code:
SELECT DISTINCTROW Max([Client].[ID]) AS ID
FROM Client;

It works fine until the ID number gets past 10. Once it gets past 10, the result always comes back 9.

What am I missing here?

Rob
Just my $.02.
 
After a day of pulling my hair out before posting my problem here, it finally HIT ME square in the head.

I had the ID field set to "text" and not "number". I was looking over it for the 1000 time when I noticed it.

Maybe this will help some other poor soul such as myself one day.

Thanks guys

Rob
Just my $.02.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top