Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting to an Access database
Message
De
13/11/2001 17:09:44
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
 
 
À
13/11/2001 16:28:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00581101
Message ID:
00581171
Vues:
22
Crescencio,

How can I check that my insert succesfully executed.

Here is the code for my insert:

********************************************************************
cSQL = "INSERT INTO Training ( course, name , [date] ) ;
Values ( " + "'" + lcCourse + "' , ;
" + "'" + lcEmployeeName + "' , ;
" + "'" + ldDate + "' )"
oCn.Execute(cSQL)
*******************************************************************


Also do you know how to close the connection.

Here is how I created the connection :

***********************************************************
lcMDBStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=l:\ehs\data\eh&s.mdb;"
oCn = Create("adodb.Connection")
oCn.Open(lcMDBStr)

*********************************************************

Thanks in advance,
Sergio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform