Search Results - VBForums

Search:

Type: Posts; User: isnoend07

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Re: Time difference giving incorrect results vb 6

    this seems to work
    With gridMaster
    If InStr(1, .TextMatrix(lngReminder, GRD_NEXT_REMINDER), "Hours") > 0 Then'it has hours
    MyHours = Left(.TextMatrix(lngReminder, GRD_NEXT_REMINDER),...
  2. Re: Time difference giving incorrect results vb 6

    Thanks I will use that if my parsing doesnt work
    i am using the code the coder wrote to determine between dates and times
    If InStr(1, .TextMatrix(lngReminder, GRD_TIME_DATE), "M") > 0 'its a time
  3. Re: Time difference giving incorrect results vb 6

    Thanks the data is stored in a textfile no database
    i am trying to parse the data in the Next Reminder column which seems to be accurate to get the info i need
  4. Re: Time difference giving incorrect results vb 6

    Never realized dates-times were so sensitive-involved. good thing this is just for me and my kids. looks like i am stuck with strings as all the calculations are done on data in a mshflexgrid....
  5. Re: Time difference giving incorrect results vb 6

    The programmer wrote it where if a alert is due it opens another flexgrid with no way to mark it as done, instead of message boxes
    when i say it works i mean it properly displays times and dates in...
  6. Re: Time difference giving incorrect results vb 6

    Thanks for your feedback. i plan on adding a sound with the messagebox the code works fine and is hooked to a timer.and is updated every ten seconds.
    the coder wrote this using strings and it works....
  7. Re: Time difference giving incorrect results vb 6

    The grid looks like this:
    135213
  8. Re: Time difference giving incorrect results vb 6

    Actually I am trying to modify code written by a coder that is more advanced that my capabilities.
    this is a reminder program that uses a mshflegrid to hold values. the coder scans the date/time...
  9. [RESOLVED] Time difference giving incorrect results vb 6

    Dim Time As String
    Time = "09:58 AM"

    Minutes = DateDiff("n", Time, Format(Now, "short time"))
    when ran at 8:57PM
    the minutes say 661, but should be 780
    what is wrong ?
  10. Re: trying to determine the days between dates between now and the dates listed using

    All you people have helped me. thank you
    each got a message "to spread reputation"
  11. Re: trying to determine the days between dates between now and the dates listed using

    good eye, finally got it to work
  12. Re: trying to determine the days between dates between now and the dates listed using

    Had already checked that
    Debug.Print .TextMatrix(i, GRD_TIME_DATE) produces 07-04-216
    next line the error
  13. Re: trying to determine the days between dates between now and the dates listed using

    also tried this
    MyDate = CDate(.TextMatrix(i, GRD_TIME_DATE))<-Type Mismatch error
  14. Re: trying to determine the days between dates between now and the dates listed using

    tried that and still get the overflow problem
  15. Re: trying to determine the days between dates between now and the dates listed using

    You are right about the overflow
    changed Days from integer to long and now Days = 657290
  16. Re: trying to determine the days between dates between now and the dates listed using

    I am using datepicker to enter values
    the grid only has 1 row for now
    maybe i should change the format to 07/26/2016
  17. [RESOLVED] trying to determine the days between dates between now and the dates listed using vb6

    this gives an overflow error
    dates are in this format: 07-26-2016

    Dim i As Integer
    GRD_TIME_DATE = 3 'hard coded
    Dim Days As Integer
    With gridMaster

    For i = 1 To .Rows - 1
    Days =...
  18. Re: Check if DTPicker1 time value is incresed by 5 minutes from the current time

    This works

    If DateDiff("n", Time, TimeValue(DTPicker1.Value)) < 5 Then
    MsgBox "You must increase the time by at least 5 minutes."
    End If
  19. Re: Check if DTPicker1 time value is incresed by 5 minutes from the current time

    Thanks , but need to check total time, if hours are increased then it wold be more than 5 minutes
  20. [RESOLVED] Check if DTPicker1 time value is incresed by 5 minutes from the current time

    I have a time picker that sets reminders it opens to the current time. I want to make sure the time is increased by 5 minutes when the OK button is clicked
    if DTPicker1.value < 5 minutes from now
    ...
  21. Re: trying to determine if a date has changed in a mshflexgrid vb6

    got it handled
    thanks did not realize i could do this to overcome the error in trying to show vbmodal
    frmCalendar.Hide
    frmCalendar.Show vbModal
  22. Re: trying to determine if a date has changed in a mshflexgrid vb6

    the grid also has a hidden column where the date determines the filename eg:
    C:\Program Files (x86)\Microsoft Visual Studio\VB10\Tasks\Personal\Tasks\10-25-2016.rtf
    if a date is changed then the...
  23. Re: trying to determine if a date has changed in a mshflexgrid vb6

    frmCalendar.Show vbModal
    thanks i tried showing frmCalendar vbmodal, but got an error saying
    "Form alrady displayed cannot show modally" don't know why it has not been accessed previously
  24. trying to determine if a date has changed in a mshflexgrid vb6

    I have mshlexgrid that has a column of dates if the date is clicked it opens another form with a calendar
    if a new date is selected it replaces the selected date
    how can i wait to see if a new date...
  25. Get Datepicker am pm time to a 24 time in a variable vb6

    Date picker displays 7:30 Pm
    How can i get the time to a 24 hour variable ? using vb6
    eg
    Dim mytime as date
    mytime = 1730
  26. Replies
    10
    Views
    327

    Re: [RESOLVED] working with 24 hour times

    that produces 9/25/1904
  27. Replies
    10
    Views
    327

    Re: working with 24 hour times

    I tested the code and it produces 30
    what does 30 mean ?
  28. Replies
    10
    Views
    327

    Re: working with 24 hour times

    Thanks for your help
    just trying to make a little app to remind my sister when to take her medicine with a messagebox
  29. Replies
    10
    Views
    327

    Re: working with 24 hour times

    thanks
    my problem is i do have a date the 1700 is part of a file name
    Dy1700.rtf with the Dy and .rtf removed i am trying compare the current time to the 1700

    this outputs 2490120

    Dim mytime...
  30. Replies
    10
    Views
    327

    [RESOLVED] working with 24 hour times

    I have some 24 hour times that i am trying to compare to the users pc time
    task time = 0500 thats 5:AM
    say the users pc time is 3:AM
    The Difference is 2 hours

    task time = 1700 thats 5:PM
    say...
  31. Replies
    4
    Views
    301

    modify existing vb 6 code

    I have a vb6 program that checks for reminders. the files are saved with the due date as the file name
    i am trying to modify it to create a file 1 year later when the file is deleted
    if...
  32. Re: [RESOLVED] find and color text red in a richtextbox each time the find button is

    Thanks Bonnie West Idid this:

    Private Sub cmdFind_Click()
    Dim NewStart As Integer
    Dim str As String
    Static Start As Integer
    Dim Length As Integer
    str = Me.txtFind...
  33. [RESOLVED] find and color text red in a richtextbox each time the find button is clicked

    Private Sub cmdFind_Click()
    Dim str As String
    Dim Start As Integer
    Dim Length As Integer
    str = txtFind
    Length = Len(str)
    Start = rtfBills.Find(str, , , rtfWholeWord)
    With rtfBills
    .SelStart =...
  34. Replies
    11
    Views
    479

    Re: Compare filename date to todays date

    This is a personal app and the dates are entered using a calendar control so the dates are always in the same format. if it was distributed then it would take more planning.
    The dates are entered in...
  35. Replies
    11
    Views
    479

    Re: Compare filename date to todays date

    Good Point
    How would you write it ?
  36. Replies
    11
    Views
    479

    Re: Compare filename date to todays date

    Thanks that works
  37. Replies
    11
    Views
    479

    Compare filename date to todays date

    I am trying to make a personal reminder program.
    Compare file names to todays date

    I have files that are saved with the files date as the name
    the file names are loaded into a listbox...
  38. Replies
    2
    Views
    290

    Re: Macro does not work

    Thanks got it to work by looping from the bottom
  39. Replies
    2
    Views
    290

    [RESOLVED] Macro does not work

    Not very familiar with excel 2000
    First time i used this macro it worked on another worksheet, but not this one


    Public Sub RemoveRows()
    Dim SearchString As String
    Dim i As Long123425...
  40. Re: Using Replace function in a mshflexgrid

    Thanks It's Fixed
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.