Click here to Skip to main content
15,917,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
Here is the code generated by VB for the DELETE statement:

Me.OleDbDeleteCommand1.CommandText = "DELETE FROM TIME_POST_WORK WHERE (Clock_Nbr = ?) AND (Seq_No = ?) AND (Punch = ?)" & _
""
Me.OleDbDeleteCommand1.Connection = Me.OleDbConnection1
Me.OleDbDeleteCommand1.Parameters.Add(New System.Data.OleDb.OleDbParameter("Clock_Nbr", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "Clock_Nbr", System.Data.DataRowVersion.Original, Nothing))
Me.OleDbDeleteCommand1.Parameters.Add(New System.Data.OleDb.OleDbParameter("Seq_No", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "Seq_No", System.Data.DataRowVersion.Original, Nothing))
Me.OleDbDeleteCommand1.Parameters.Add(New System.Data.OleDb.OleDbParameter("Punch", System.Data.OleDb.OleDbType.DBDate, 0, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "Punch", System.Data.DataRowVersion.Original, Nothing))

Most of my development involves a SQL database, but for the purposes of this application, I am using an Access database. The table that I am querying actually has 28 cloumns, and all three of the elements that I am SELECTing or DELETEing are set as primary keys.
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 
QuestionHR Software Code Pin
Mushfiq Alam16-Aug-06 4:07
Mushfiq Alam16-Aug-06 4:07 
AnswerRe: HR Software Code Pin
Michael P Butler16-Aug-06 4:17
Michael P Butler16-Aug-06 4:17 
QuestionWordpad & spaces in the RTF filename [modified] Pin
John Waclawski16-Aug-06 3:38
John Waclawski16-Aug-06 3:38 
AnswerRe: Wordpad & spaces in the RTF filename Pin
Stephen McGuire16-Aug-06 6:13
Stephen McGuire16-Aug-06 6:13 
GeneralRe: Wordpad & spaces in the RTF filename Pin
John Waclawski16-Aug-06 6:29
John Waclawski16-Aug-06 6:29 
GeneralRe: Wordpad & spaces in the RTF filename Pin
Stephen McGuire16-Aug-06 6:46
Stephen McGuire16-Aug-06 6:46 
AnswerRe: Wordpad & spaces in the RTF filename Pin
Guffa16-Aug-06 8:40
Guffa16-Aug-06 8:40 
AnswerRe: Wordpad & spaces in the RTF filename Pin
John Waclawski17-Aug-06 16:38
John Waclawski17-Aug-06 16:38 
AnswerRe: Wordpad & spaces in the RTF filename Pin
Guffa18-Aug-06 0:16
Guffa18-Aug-06 0:16 
Questionsetup and deployment customization Pin
MaryAndNaz16-Aug-06 3:21
MaryAndNaz16-Aug-06 3:21 
QuestionData Source Not found error and Crystal Reports problem [modified] Pin
jaykarkar16-Aug-06 2:57
jaykarkar16-Aug-06 2:57 
GeneralVB6 Package Installation Pin
manowj16-Aug-06 0:58
manowj16-Aug-06 0:58 

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.