ClaraBarton
Registered User.
- Local time
- Today, 05:37
- Joined
- Oct 14, 2019
- Messages
- 661
I want to find a record that meets several criteria.
This query returns 15 available locations (records).
I want to update only one with a new ItemID and set inUse to true.
How do I return only one record with the lowest ID (locID)?
Code:
SELECT tblLocation.*, tblLocation.fItemID, tblLocation.InUse, tblLocation.Parent
FROM tblLocation
WHERE (((tblLocation.fItemID) Is Null) AND ((tblLocation.InUse)=False) AND ((tblLocation.Parent)="DR2"));
I want to update only one with a new ItemID and set inUse to true.
How do I return only one record with the lowest ID (locID)?