Hi Neil
You are missing a line with something like:
USE modacad order yourindex in 0 && change yourindex
>Viv I have included the replace command but still no joy:
>
>
>SET DEFAULT TO 'C:\Pathproblem'
>
>IF .NOT. USED("Paths")
> USE Paths IN 0
>ENDIF
>
>SET DEFAULT TO 'C:\Pathproblem'
>select paths
>go top
>scan
> if seek(mainkey,'modacad')
> replace paths with paths.path in modacad
> endif
>endscan
>
>
>It is highlighting the IF SEEK line stating that alias is not found. Is it something to do with opening of the modacad table.
>
>Many Thanks