DateTimePicker to DB Access

powerteh

Member
Joined
Mar 23, 2006
Messages
13
Programming Experience
Beginner
Hi,
Thi is the sample form that i want to create.
Problem :
i) how to save the text box value together with the DateTimePicker values into a same table, as a same record? (by clicking the button)

Please show me simple example of code if its need DataBinding to achieve.

thanks
 

Attachments

  • myform.JPG
    myform.JPG
    10.4 KB · Views: 102
VB.NET:
Dim SQL as String
 
SQL = [SIZE=2]"INSERT INTO TableName (Name,AccessDate) VALUES (' " & TextBox1.Text & " ', ' " & DateTimePiucker.[SIZE=2]Value.Date.ToString[/SIZE]() & " ') "
[/SIZE][SIZE=2] 
[/SIZE]
 
Back
Top