Dlookup Part
Can't figure out what I'm doing wrong, am I using a protected word or something or is it something with an autonumber.
Code:
IM.Value = DLookup("[IM]", "IMMtbl", "[IMID] = " & SENTLIST.Value)
IM.value = textbox on the form (updatable not locked)
[IM] Memo field on IMMtbl
[IMID] Autonumber Primary Key on IMMtbl
SENTLIST.value - sentlist is a listbox on the form, the bound column refers to the autonumber column of the queried table
I think the same problem I'm having here is also affecting my UPDATE SQL code as well...
UPDATE SQL part
Code:
UPDATEsql = "UPDATE IMMtbl SET IMMtbl.SD = -1 WHERE IMMtbl.IMID = " & SENTLIST.Value
SD is a yes/no column and IMID is the autonumber and SENTLIST.value is the same as before
~Snayjay