Click here to Skip to main content
15,916,951 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: webclient on multiple threads? Pin
Keith Malwitz17-Aug-06 18:01
Keith Malwitz17-Aug-06 18:01 
GeneralRe: webclient on multiple threads? Pin
cstrader23218-Aug-06 3:12
cstrader23218-Aug-06 3:12 
QuestionUpdate database in designer Pin
cstrader23216-Aug-06 5:11
cstrader23216-Aug-06 5:11 
AnswerRe: Update database in designer Pin
Stephen McGuire16-Aug-06 5:47
Stephen McGuire16-Aug-06 5:47 
GeneralRe: Update database in designer Pin
cstrader23216-Aug-06 6:34
cstrader23216-Aug-06 6:34 
QuestionDateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 5:11
TAtechsupport16-Aug-06 5:11 
AnswerRe: DateTime datatype returns Date only Pin
Stephen McGuire16-Aug-06 5:40
Stephen McGuire16-Aug-06 5:40 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 6:57
TAtechsupport16-Aug-06 6:57 
Here is the Code that I am using. It contains 2 other fields in the query as you can see, but that shouldn't affect how the DateTime (Punch) is displayed.

This code was generated by VB:
'OleDbSelectCommand1
'
Me.OleDbSelectCommand1.CommandText = "SELECT Clock_Nbr, Punch, Seq_No FROM TIME_POST_WORK ORDER BY Punch"
Me.OleDbSelectCommand1.Connection = Me.OleDbConnection1


This is the code that I used to fill the Dataset and attempt to save back to the database:

Private Sub btnOpen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpen.Click
OleDbDataAdapter1.Fill(DataSet11, "Time_Post_Work")
End Sub

Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
OleDbDataAdapter1.Update(DataSet11)

As for testing my DataSet, in the Properties Window associated with the OleDbDataAdapter, I am clicking on the elipse next to the CommandText for the SELECT statement. This brings up a Query Builder window that contains "SELECT Clock_Nbr, Punch, Seq_No FROM TIME_POST_WORK ORDER BY Punch". I am running this query and it displays 'Punch' as a DateTime. If I use the Data Adapter Preview window the 'Punch' field only displays the Date.
AnswerRe: DateTime datatype returns Date only Pin
Guffa16-Aug-06 8:38
Guffa16-Aug-06 8:38 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 8:56
TAtechsupport16-Aug-06 8:56 
GeneralRe: DateTime datatype returns Date only Pin
Stephen McGuire16-Aug-06 9:52
Stephen McGuire16-Aug-06 9:52 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 10:25
TAtechsupport16-Aug-06 10:25 
GeneralRe: DateTime datatype returns Date only Pin
Stephen McGuire16-Aug-06 10:37
Stephen McGuire16-Aug-06 10:37 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 10:42
TAtechsupport16-Aug-06 10:42 
GeneralRe: DateTime datatype returns Date only Pin
Stephen McGuire16-Aug-06 10:50
Stephen McGuire16-Aug-06 10:50 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 11:23
TAtechsupport16-Aug-06 11:23 
GeneralRe: DateTime datatype returns Date only Pin
Stephen McGuire16-Aug-06 12:08
Stephen McGuire16-Aug-06 12:08 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 13:23
TAtechsupport16-Aug-06 13:23 
GeneralRe: DateTime datatype returns Date only Pin
Stephen McGuire17-Aug-06 0:20
Stephen McGuire17-Aug-06 0:20 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport17-Aug-06 3:13
TAtechsupport17-Aug-06 3:13 
GeneralRe: DateTime datatype returns Date only Pin
Stephen McGuire17-Aug-06 6:53
Stephen McGuire17-Aug-06 6:53 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport17-Aug-06 11:15
TAtechsupport17-Aug-06 11:15 
GeneralRe: DateTime datatype returns Date only Pin
Stephen McGuire17-Aug-06 11:26
Stephen McGuire17-Aug-06 11:26 
GeneralRe: DateTime datatype returns Date only Pin
S Pandian16-Aug-06 22:55
S Pandian16-Aug-06 22:55 
QuestionExchange 6.5 Recipients List Pin
Tim Carmichael16-Aug-06 4:14
Tim Carmichael16-Aug-06 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.