if gnconnhandle<1 = AERROR(aErrorArray) && Data from most recent error errflag=aErrorArray(2) && Most Ralivent error else SQLQuery="SELECT * FROM yourdate where whatever=whatever" ck=sqlexec(gnconnhandle,SQLQuery,"mylocalcopy") If ck<0 = AERROR(aErrorArray) && Data from most recent error errflag=aErrorArray(2) && Most Ralivent error else do you thing here copy to access Endif endif if gnconnhandle>0 sqldisconnect(gnconnhandle) endifWhat version of driver are you using?