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

Visual Basic

 
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 
Try setting the OleDbType of Punch to OleDbType.DBTimeStamp.

That will pass the date and time parts.

However, you should get into the habit of creating an ID column for each of your tables. This should be the Primary Key of the table. This ID will uniquely identify each row in your tables. Then, all you have to do is pass the ID number in the WHERE clause of your UPDATE and DELETE queries.

This is not only easier to read and control, but is more efficient since primary keys are always indexed. The index will be used by your DB engine to locate records much quicker and so will perform your commands with the highest efficiency.

I don't know if any of the other columns could be used as a primary key?
If so, since it is unique, all you have to do is pass that value so the DB knows which row to work on. The data in the other fields is irrelevant since all you need to do is identify the row to delete.

Steve
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 
QuestionHow to view data in “TEXT” type column? Pin
Krishnaraj Barvathaya B16-Aug-06 0:46
Krishnaraj Barvathaya B16-Aug-06 0:46 

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.