Q: delete first row

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
How can I write a query to delete first row in the table?
Thanks,
 
Realistically, you shouldn't think in terms of "first row": data in tables
does not have a guaranteed order.

To delete a specific row, you should use a Delete query, specifying the
primary key for the record you want to delete.
 
Use this

DELETE TableName.*
FROM TableName
WHERE TableName.FieldName=DMin("FieldName","TableName")

FieldName = The name of the field that indicate the which one is the forst row
The Min will take the first one
If you want the last record change it to max
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top