Hi, shouldn't something lik this work? or maybe i'm missing something for passing in a variable for a field name?
id=db.local_user.insert(dateTime=datetime.now()) for key in localUserDict.keys(): for field in db.local_user.fields: if field==key: db(db.local_user.id==id).update(field=localUserDict[key]) db.commit() the exception is of course that the Field field does not belong to the local_user table Thanks, Mart :)