The following syntax worked for some reason. The field just could not accept anything except a numeric field for a date.
Dim aux As Decimal
aux = Now.ToOADate
cmd.CommandText = "insert into dtTest (f1) values (" + aux.tostring + ")";
Main Topics
Browse All Topics





by: mirtheilPosted on 2009-10-08 at 06:03:58ID: 25524863
If you're getting a Pervasive status 5, that means duplicate key value.
A Pervasive Datetime is both a date and a time so a .NET Datetime data type should work correctly.
Here's a sample that I just threw together..
Select allOpen in new window