It's always best to identify a unique record by id. Unless you intentionally want to update all persons with the same last name, I would use person_id.
On Aug 24, 9:37 pm, jayvandal <jayvan...@gmail.com> wrote: > HI, > I tried this code > ================================================= > records=db(db.person.last_name==request.vars.last_name)\ > .select(orderby=db.person.last_name) > =================================================== > i see that this will find by last name or partial last name. > > I tried to get the person_id and use it to find all the events for > that person and then display the event records. > > Can I do this or should I do this?? > Thanks > Jim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---