Click here to Skip to main content
15,912,493 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Branching a solution Pin
Luc Pattyn23-Jul-07 9:46
sitebuilderLuc Pattyn23-Jul-07 9:46 
GeneralRe: Branching a solution Pin
Salvador Rocha23-Jul-07 13:47
Salvador Rocha23-Jul-07 13:47 
GeneralRe: Branching a solution Pin
Luc Pattyn23-Jul-07 14:13
sitebuilderLuc Pattyn23-Jul-07 14:13 
QuestionDataGridView committing a value in a cell. Pin
steve_rm22-Jul-07 12:49
steve_rm22-Jul-07 12:49 
AnswerRe: DataGridView committing a value in a cell. Pin
Psycho-*Coder*-Extreme22-Jul-07 15:04
Psycho-*Coder*-Extreme22-Jul-07 15:04 
QuestionSave As A Chosen Date. Pin
frankiebaby222-Jul-07 12:28
frankiebaby222-Jul-07 12:28 
AnswerRe: Save As A Chosen Date. Pin
frankiebaby222-Jul-07 14:23
frankiebaby222-Jul-07 14:23 
AnswerRe: Save As A Chosen Date. [modified*3] Pin
Psycho-*Coder*-Extreme22-Jul-07 15:02
Psycho-*Coder*-Extreme22-Jul-07 15:02 
1/ To store the date in that format when entering into the database use this
'DateTime is the name of the variable (this is just for example)
DateTime = Format(DateTime,"yyyy/MM/dd")

This will store it in the format yyyy/mm/dd

2/ Query the database (use a stored procedure as inline SQL is prone to SQLInjection Attacks)
CREATE PROCEDURE DoesDateExist(@Date_Value DATETIME)
AS
  SELECT 
         * 
  FROM 
         Table_Name 
  WHERE 
        //This will get everything that happened on that particular day 
        //(its greater than the date specified but less than the day specified + 1)
        date_value > @Date_Value
        AND date_value < DATEADD(day,1,@Date_Value)

This is a simple procedure, you need to create your own according to your data structure, I was just trying to put you on the right path. As for #3, you said you can do that one so I wont answer it

Last modified: 44mins after originally posted -- Inadvertanly used the LIKE keyword on a DATETIME field


"Let's face it, the average computer user has the brain of a Spider Monkey."
Bill Gates


GeneralRe: Save As A Chosen Date. Pin
Christian Graus22-Jul-07 15:34
protectorChristian Graus22-Jul-07 15:34 
GeneralRe: Save As A Chosen Date. Pin
Psycho-*Coder*-Extreme22-Jul-07 15:41
Psycho-*Coder*-Extreme22-Jul-07 15:41 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
frankiebaby222-Jul-07 22:49
frankiebaby222-Jul-07 22:49 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
RichardBerry23-Jul-07 2:53
RichardBerry23-Jul-07 2:53 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
frankiebaby223-Jul-07 9:35
frankiebaby223-Jul-07 9:35 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
frankiebaby223-Jul-07 15:31
frankiebaby223-Jul-07 15:31 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
RichardBerry23-Jul-07 22:00
RichardBerry23-Jul-07 22:00 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
frankiebaby223-Jul-07 22:22
frankiebaby223-Jul-07 22:22 
QuestionHTML Editor in Vb.net Pin
phyrrix22-Jul-07 6:46
phyrrix22-Jul-07 6:46 
AnswerRe: HTML Editor in Vb.net Pin
ne0h22-Jul-07 7:02
ne0h22-Jul-07 7:02 
AnswerRe: HTML Editor in Vb.net Pin
Naji El Kotob22-Jul-07 8:08
Naji El Kotob22-Jul-07 8:08 
Questionupdateing db Pin
stupid122-Jul-07 3:26
stupid122-Jul-07 3:26 
AnswerRe: updateing db Pin
stupid122-Jul-07 3:27
stupid122-Jul-07 3:27 
QuestionHow to replace text until end of the line? Pin
sweehin1822-Jul-07 2:18
sweehin1822-Jul-07 2:18 
AnswerRe: How to replace text until end of the line? Pin
Luc Pattyn22-Jul-07 2:44
sitebuilderLuc Pattyn22-Jul-07 2:44 
GeneralRe: How to replace text until end of the line? Pin
sweehin1822-Jul-07 2:59
sweehin1822-Jul-07 2:59 
GeneralRe: How to replace text until end of the line? Pin
Luc Pattyn22-Jul-07 3:32
sitebuilderLuc Pattyn22-Jul-07 3:32 

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.