Hi Tariq,
The connection is synchronous or asynchronous?
MartinaJ
>Sir, I have these codes
>
>
>cmd="select MAX(vou_no)as max_sno from arrival"
>if sqlexec(con,cmd,'table1')<0
> aerror(laerror)
> messagebox(laerror[1,2])
> return.f.
>else
> select table1
> thisform.text1.value=nvl(max_sno,0)+1
>endif
>
>
>These code work fine on every event but not on INIT of Form.
>
>When I use above code on INIT of form then I have to face this error message
>
>
Connection #1 is busy.>
>Please help