Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting to an Access database
Message
From
13/11/2001 17:09:44
 
 
To
13/11/2001 16:28:23
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00581101
Message ID:
00581171
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform