Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

NEED HELP FOR VB CODES

We are doing a billing system for our thesis. Anyone here knows the vb
code for computing months? Like if the user would input

BILLING FROM: march/1995 TO: april/2006
TOTAL NO. OF MONTHS: ?

... it can be automatically computed/calculated how many months there is within that period (march/1995-april/2006)?

Do you also have vb codes for system audit trail?

Looking forward to your help. Thanks much in advance(^_^)



Maie

Comments

  • Termc1224Termc1224 Member Posts: 84
    : We are doing a billing system for our thesis. Anyone here knows the vb
    : code for computing months? Like if the user would input
    :
    : BILLING FROM: march/1995 TO: april/2006
    : TOTAL NO. OF MONTHS: ?
    :
    : ... it can be automatically computed/calculated how many months there is within that period (march/1995-april/2006)?
    :
    : Do you also have vb codes for system audit trail?
    :
    : Looking forward to your help. Thanks much in advance(^_^)
    :
    :
    :
    : Maie
    :
    try this
    y = year(april/2006) - year(march/1995)
    n = month(april/2006) - month(march/1995)
    num_of_months = (y * 12) + n
    I'm the best there is,
    the best there was,
    and the best there ever will be.
    hahahahaha lolz :)

Sign In or Register to comment.