Hi Alex,
It would be really useful if you'd provide some more information about the situation.
For example: Define "Not working". Do you get an error? If so, what error. Post the error message here.
Also, how is your table created? What's the table name and which columns do you have?.
Another thing, don't use a SQL statement directly on the Execute method. Instead, assign it to a SQL variable which you can write to the screen using Trace, or to a temporary label, like this:
Code:
Dim SQL As String
SQL = "INSERT datum (Datum) VALUES ('" & dt.Value & "')"
MyDebugLabel.Text = SQL
This way it's easier to see what the SQL statement contains.
Without this information, it's pretty hard to guess what the problem is, and to provide a solution for it.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.