+ Reply to Thread
Results 1 to 7 of 7
Thread
  1. I'm having a problem with a program I am writing. It is a Video Renting program, and to calculate Late Fees I have something similar to:

    Late = (frmvhsout.txtFields(2) <= Date)

    That will return a true or false value. But, when frmvhsout.txtFields(2) is equal to a date older than today's Date or today's date, it gives me a false value.

    I can only assume that I am using the Date function in an improper way.

    Does anyone know how I could fix this? Or a better forum to post this in? Thanks.
    Quote Quote  

  2. Member tekkieman's Avatar
    Join Date: Mar 2004
    Location: Over the hill
    It could be moved to the Programming forum .

    Are you using VB or VB.NET?
    Quote Quote  

  3. I didn't know there was a programming forum

    I'm using just VB
    Quote Quote  

  4. Moving to the Programming forum
    Quote Quote  

  5. Member tekkieman's Avatar
    Join Date: Mar 2004
    Location: Over the hill
    Ok, first, you should probably cast the textbox entry to the same datatype using CDate(frmvhsout.txtFields(2).Text). From there, you should be able to compare using Late =(CDate(frmvhsout.txtFields(2).Text)<= Now). My VB is on my test server, and I only have .NET on this machine, but that should work for you.

    If not, let me know, and I'll fire up the other box.
    Quote Quote  

  6. Thanks a lot! I've been trying at that for an hour or more.

    It now works perfectly...or atleast that one line of code
    Quote Quote  

  7. Member tekkieman's Avatar
    Join Date: Mar 2004
    Location: Over the hill
    No prob. Just give a yell if you get stuck.
    Quote Quote  




Similar Threads

  1. visual basic code
    By kudoshinichi in forum Programming
    Replies: 1
    Last Post: 21st Jan 2009, 08:30
  2. Visual Basic code
    By g_shocker182 in forum Programming
    Replies: 30
    Last Post: 9th Aug 2006, 23:40
  3. Attn: Visual Effects People - FXhome updates their software!
    By thefiddler in forum Latest Video News
    Replies: 0
    Last Post: 1st Dec 2005, 14:20
  4. Visual Basic (6)
    By g_shocker182 in forum Programming
    Replies: 10
    Last Post: 30th Jan 2004, 20:50
  5. Saving in Visual Basic
    By g_shocker182 in forum Programming
    Replies: 16
    Last Post: 27th Dec 2003, 16:20
Replay Video Capture, if you can Watch it, you can Capture it ! and save it to your computer. More info or download trial!
About   Advertise   Forum   Forum Archive   RSS Feeds   Statistics   Tools