I think I am close I just don’t know the exact syntax.
I am trying to use VBA to select a record based on the value of the SCID (Primary Key) from my table Stock Conversion.
If LookUp("Source PC", "Stock Conversion") Is Null Then
sc1.AddNew
sc1.Fields("[Source PC]").Value = Me.cmbSource.Value
sc1.Update
End If
This is the code I have now, as you can see I only want the field to be populated if the value is Null. It needs to find the Source PC where SCID = Record.
Thanks in advance,
Bob P
This is where you should use a recordset.