Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File is in use
Message
De
17/12/2004 12:22:17
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
 
À
17/12/2004 12:11:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
00970099
Message ID:
00970105
Vues:
18
Mohammed,

When you execute your query, the table per is put in use. Change
use per
to
SELECT Per
and you won't get the error message.

Regards,

>hi all,
> i try to save at mytable as under i get error message(file is in use)
>
>lnYear=YEAR(DATE())
>SELECT MAX(BILLNO) from per WHERE YEAR(per.datein)=lnYear INTO ARRAY laAarray
>if _tally=0
>  laArray=1
>  thisform.text1.value=RIGHT(STR(10000+1,5),3) + '_' + (RIGHT(STR(lnYear,4),2))
>else
>  thisform.text1.value= RIGHT(STR(10000+per.billno+1,5),3) + '_'+(RIGHT(STR(YEAR(per.datein),4),2))
>endif
>
>  use per && file is in use
>  Append From Dbf('temp')
>  replace w1 with thisform.text14.value
>  replace w2 with thisform.text16.value
>  With thisform.grid1
>   .recordsource = ''
>   Select temp
>
>   .recordsource = 'temp'
>   thisform.text1.SetFocus
>   thisform.refresh
>  endwith
>
>  **********************
>  with thisform.Grid1
> .Recordsource = .Recordsource
>endwith
>
>
>thanks
>m.qasem
Jim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform