nitin chandra wrote: > Thanks Alan, Peter > > but didn't work > > nextrow=(cursor1.execute(query, (design1,))).fetchone() > AttributeError: 'NoneType' object has no attribute 'fetchone' Try without the method chaining: cursor1.execute(query, (design1,)) nextrow = cursor1.fetchone()