Click here to Skip to main content
16,005,121 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
I understand that you are doing all this visually in the designer?

You need to create a TableStyle for your grid. Look in the properties window for your grid, click the [...] ellipsis button and create a new DataGridTableStyle. Then, create a DataGridColumnStyle for each column in your grid. When you create these, you can set the 'Format' for each column. In the column that represents your 'punch' value, you will need to enter:

"g" in the Format property. This will set the display to 01/01/2006 01:01 AM

To get the value correctly into your delete query, pass the value to the punch parameter as:

PunchValue.ToString("g")

This will make sure the whole value is presented to the parameter.

Let me know how it goes!

Steve
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 
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 

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.