View Full Version : Any Function available to Serialise the Queries?
prabhafriend
01-18-2010, 04:43 AM
Are there any function available to include serial numbers in Query? I believe there must be some way to achieve this. Help needed.
geekgirlau
01-18-2010, 04:25 PM
Can you provide more information? What is it that you're trying to do?
prabhafriend
01-19-2010, 12:16 AM
A Functionality like the 'ROWNUM' in Ms-Access
CreganTur
01-19-2010, 10:11 AM
Are you wanting your query to create a serial number or use it as a parameter? If neither, then please explain in more detail what you're trying to do.
geekgirlau
01-19-2010, 03:15 PM
If you're after a sequential list of numbers, you can do something like the following. Be warned however that this can be slow depending on your data. This assumes that the ID field is unique.
SELECT ID, DCount("[ID]","MyTable","[ID]<=" & [ID]) AS RowNum
FROM MyTable
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.