Click here to Skip to main content
15,897,718 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCalculating intervals using Dates Pin
KrisnNala16-Jul-08 5:41
KrisnNala16-Jul-08 5:41 
AnswerRe: Calculating intervals using Dates Pin
Luc Pattyn16-Jul-08 6:20
sitebuilderLuc Pattyn16-Jul-08 6:20 
GeneralRe: Calculating intervals using Dates Pin
KrisnNala16-Jul-08 7:21
KrisnNala16-Jul-08 7:21 
GeneralRe: Calculating intervals using Dates Pin
Luc Pattyn16-Jul-08 7:24
sitebuilderLuc Pattyn16-Jul-08 7:24 
GeneralRe: Calculating intervals using Dates Pin
KrisnNala16-Jul-08 7:34
KrisnNala16-Jul-08 7:34 
AnswerRe: Calculating intervals using Dates Pin
Guffa16-Jul-08 10:18
Guffa16-Jul-08 10:18 
AnswerRe: Calculating intervals using Dates Pin
Guffa16-Jul-08 10:18
Guffa16-Jul-08 10:18 
GeneralRe: Calculating intervals using Dates Pin
KrisnNala16-Jul-08 22:39
KrisnNala16-Jul-08 22:39 
Hi Guff

Thanks alot for your help. Still have a problem that it's not moving through each row of the table. I know it's something really stupid I'm missing but getting annoyed with my self.

Code is now

Dim CurrentDate As Date
Dim ReminderDate As Date
Dim InvoiceDate As Date
Dim msgbxReminder As MsgBoxResult
CurrentDate = Date.Now.Date
For Each dr As DataRow In Me.DachelDataSet.Invoices.Rows
If dr("Cleared") Is System.Convert.DBNull Then
InvoiceDate = Me.DachelDataSet.Invoices.Rows(Me.InvoicesBindingSource.Position).Item("InvoiceDate")
ReminderDate = DateAdd(DateInterval.Month, 1, InvoiceDate)
If ReminderDate <= CurrentDate Then
msgbxReminder = MsgBox("The Invoice for" & " " & CurrentClient & " " & "which is Invoice Number " & " " & CurrentInvoiceID & " " & "is 1 month overdue.")
End If
End If
Next

Thanks AlotConfused | :confused:

Kris MCP

GeneralRe: Calculating intervals using Dates Pin
Guffa17-Jul-08 1:15
Guffa17-Jul-08 1:15 
GeneralRe: Calculating intervals using Dates Pin
KrisnNala17-Jul-08 4:13
KrisnNala17-Jul-08 4:13 
QuestionHow to compile solution with mutliple project types properly? Pin
Jon_Boy16-Jul-08 4:09
Jon_Boy16-Jul-08 4:09 
AnswerRe: How to compile solution with mutliple project types properly? Pin
Paul Conrad16-Jul-08 4:32
professionalPaul Conrad16-Jul-08 4:32 
GeneralRe: How to compile solution with mutliple project types properly? Pin
Jon_Boy16-Jul-08 6:15
Jon_Boy16-Jul-08 6:15 
GeneralRe: How to compile solution with mutliple project types properly? Pin
darkelv16-Jul-08 15:58
darkelv16-Jul-08 15:58 
Questionreferencing ocx file Pin
swapg16-Jul-08 3:41
swapg16-Jul-08 3:41 
QuestionRe: referencing ocx file Pin
Paul Conrad16-Jul-08 4:33
professionalPaul Conrad16-Jul-08 4:33 
AnswerRe: referencing ocx file Pin
swapg16-Jul-08 21:29
swapg16-Jul-08 21:29 
QuestionDataGridView Pin
Riaz Ahmed16-Jul-08 1:43
Riaz Ahmed16-Jul-08 1:43 
AnswerRe: DataGridView Pin
~V~16-Jul-08 2:21
~V~16-Jul-08 2:21 
AnswerRe: DataGridView Pin
Jon_Boy16-Jul-08 3:43
Jon_Boy16-Jul-08 3:43 
QuestionSplit textbox.text Pin
stepdeb16-Jul-08 1:41
stepdeb16-Jul-08 1:41 
AnswerRe: Split textbox.text Pin
jzonthemtn16-Jul-08 1:55
jzonthemtn16-Jul-08 1:55 
GeneralRe: Split textbox.text Pin
stepdeb16-Jul-08 2:16
stepdeb16-Jul-08 2:16 
AnswerRe: Split textbox.text Pin
Luc Pattyn16-Jul-08 2:03
sitebuilderLuc Pattyn16-Jul-08 2:03 
GeneralRe: Split textbox.text Pin
Paul Conrad16-Jul-08 4:35
professionalPaul Conrad16-Jul-08 4:35 

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.