As title states..
I want to perform a DLookup for something NOT already in a table.
I want to add records via button but do not want to add it if a certain field is already included in that table.
First pass at possible code??
Code:Set V = CurrentDb.OpenRecordset("tblCommodity") If DLookup("Commodity_PK", "tblCommodity", "Commodity_PK <>") Then V.AddNew V![Commodity_PK] = Me.txtCommodity.Value V.Update Else End If Set V = Nothing