Hi Anthony, Thanks, i will give it a try
Op vrijdag 29 maart 2019 21:53:49 UTC+1 schreef Anthony: > > You can create a dictionary of field names and values and then do: > > workrecord.update_record(**dict_of_new_values) > > Anthony > > On Friday, March 29, 2019 at 4:49:28 PM UTC-4, Steve wrote: >> >> Hi All, >> >> When updating a record i would like to make some column names variable. >> I have the next statement : workrecord.update_record(starttime=iid.start, >> t1=worktime, c1=amount) >> >> I would like to make the field t1 variable so that ik can replace the 1 >> with another number.! >> Any a suggestion if this is possible and if so how. >> >> The %s or %d does not work on fieldnames >> >> Steve >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.