Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quick and dirty ADD for dozens of tables
Message
De
06/10/2005 00:12:35
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Quick and dirty ADD for dozens of tables
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01056606
Message ID:
01056606
Vues:
55
I have dozens of small and infrequently used tables (remote SQL views) that I need a quick way to develop an ADD form. It does NOT have to be pretty.

I thought of haveing a PRG that is called with file number
Then a Case statement to open correct table.

I hoped I could use only one generic ADD Form.
Open the database before I call the form.
Append blank at form load
Use EDIT command to show fields (this is a new record and not yet updated)
Put two command button at bottom Save & Cancel
Save has a tableupdate(), Cancel has Tablerevert()
Then thisform.release

YES, this is crude but quick to build.

Question: on EDIT command, can I put it on a Form and can I limit user to editing just that one record?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform