I am creating a lookup on a form that will pull a value only if a column (Inuse) is true. Is it better to have seperate tables for each condition (say 1 and 2) or 1 table with conditions (1 and 2) in it? If one table is preferred does the below look correct? Thank you
.
Separate
One table
Separate
Code:
Me.Text61=DLookup("[Kit]","[tblExtract1]","[Inuse]=-1")
Me.Text62=DLookup("[Lot]","[tblExtract1]","[Inuse]=-1")
Me.Text63=DLookup("[Kit]","[tblExtract2]","[Inuse]=-1")
Me.Text64=DLookup("[Lot]","[tblExtract2]","[Inuse]=-1")
One table
Code:
Me.Text61=DLookup("[Kit]=1","[tblReagent]","[Inuse]=-1")
Me.Text62=DLookup("[Lot]=1","[tblReagent]","[Inuse]=-1")
Me.Text63=DLookup("[Kit]=2","[tblReagent]","[Inuse]=-1")
Me.Text64=DLookup("[Lot]=2","[tblReagent]","[Inuse]=-1")