Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Actualizar tabelas programaticamente
Message
From
18/12/2002 06:59:11
 
 
To
18/12/2002 06:54:03
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00734012
Message ID:
00734027
Views:
19
>Obrigado Alex e Geraldo
>
>Vou dizer exatamente o que tenho que fazer , e espero a vossa ajuda para me indicarem a melhor solução .
>
>Tenho um form , que serve para fazer facturas ( notas fiscais ) .
>
>Por exemplo , estou na factura nº 15 , faço uma nova , que tem o nº 16 .
>Agora apago a factura nº 16 .
>
>Quando faço uma nova quero que essa seja a nº 16 .
>
>No entanto , o indice candidato não deixa , pois já existe uma factura nº 16 apesar de ter sido apagada .
>
>Qual é a melhor solução para resolver isto ?
>
>Muito obrigado


Não conheço a 'legalidade' de apagar facturas. <g>
Si a factura deve ser apagada antes de finalizar, o melhor é sempre pesquisar (e escrever) o numero ão final.
No seu caso, vc pode apagar é mudar o numero a uma sequencia diferente (9999 ou XXX999 ou similar) para poder reusar o numero 16.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform