jadams0173
Technical User
- Feb 18, 2005
- 1,210
Hey all. I'm struggling with a simple task. I've used DLookup before but am very new to recordsets. I am looking at a table that has an ID(Autonumber), StoreageLoc(txt) and StoreageFlag(txt). All I need to do is find the first location where the flag is set to 0. I've tried this
This returns a type mismatch in criteria. There are multiple records that meet the criteria, but i'm just looking for the first. Would a recordset be better? In the big picture I will be setting this flag from 0 to 1 to try to use the open locations efficently. Any ideas or help would be greatly welcomed.
Code:
Loc = DLookup("[LocationFlag]", "tblStencilLoc", "[Storageflag]=0")
This returns a type mismatch in criteria. There are multiple records that meet the criteria, but i'm just looking for the first. Would a recordset be better? In the big picture I will be setting this flag from 0 to 1 to try to use the open locations efficently. Any ideas or help would be greatly welcomed.