cmd="select date,vou_no,vou_type from vouchers where date>?Thisform.text3.Value and vou_type='CP' group by date,vou_no,vou_type order by date,vou_no"ifsqlexec(con,cmd,'nav')<0aerror(laerror)
messagebox(laerror[1,2])
returnendif
MartinaJ
>Thanks but... > >Still same error
"Navision is evil that needs to be erazed... to the ground"