Thanks! It works! But I am confused as to why the previous code didn't work, specially considering that it worked perfectly with the sqlite dataset. I assume that RecNo does not work with the Sdf dataset. -- Felipe Monteiro de Carvalho