Not sure if this matters but I always use the chr(34) for text queries
DLookup("tblusers.sno", "tblusers", "tblusers.users = " & chr(34) & Me.individual & chr(34))
db.Execute "update tblstock set sno = 15 where stockid = " & chr(34) & SID & chr(34)
Another thing just thought of
If PID and...