Massimo, Your suggested code solved the problem, thanks.
This: record=db.mytable[myrecord] is equivalent to: db(db.mytable.id==myrecord).select()[0] and in my case: record=db(db.adres.id==record_id).select(db.adres.bedrijf)[0] However, this: record=db.adres[request.args[0]] is not equivalent to: record=db(db.adres.id==request.args[0]).select(db.adres.bedrijf) Why not? Annet. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---