When updating an existing user the vb code uses the datamanager function set_existing() and passes an array of the data, instead of calling set() for each field. This calls set_condition(), and if a condition is set, when save() is called it does an update instead of an insert. So you could try either using set_existing(), or else call set_condition() if you're trying to update an existing user.
If you're adding a new user, then you could try not setting the userid (and it will be assigned the next highest userid).
|