DateDiff Error! Wrong Number of argument

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • News Central

    #1

    DateDiff Error! Wrong Number of argument

    To all!
    I use the DateDiff function using VB6 and get this error 'Wrong number of
    argument or invalid property assignment' ... have anyone seen this problem?
    thanks ....


  • Bob Butler

    #2
    Re: DateDiff Error! Wrong Number of argument

    "News Central" <Bay@Bay.com> wrote in message news:<YaKdnWAJN 8-V-8vdRVn-tw@baytsp.com>. ..[color=blue]
    > To all!
    > I use the DateDiff function using VB6 and get this error 'Wrong number of
    > argument or invalid property assignment' ... have anyone seen this problem?
    > thanks ....[/color]

    No. Post your code.

    Do you have something else named 'DateDiff'? (right click on the
    function name in your code and select 'Definition' to see if it takes
    you somewhere unexpected).

    When you enter DateDiff( what does intellisense show?

    Does using VBA.DateDiff work?

    Comment

    • News Central

      #3
      Re: DateDiff Error! Wrong Number of argument

      you're right, somewhere in my codes, there is a function called DateDiff....
      :> thankls
      "Bob Butler" <butlerbob@eart hlink.net> wrote in message
      news:fa10fb0.04 03160731.52de35 30@posting.goog le.com...[color=blue]
      > "News Central" <Bay@Bay.com> wrote in message[/color]
      news:<YaKdnWAJN 8-V-8vdRVn-tw@baytsp.com>. ..[color=blue][color=green]
      > > To all!
      > > I use the DateDiff function using VB6 and get this error 'Wrong number[/color][/color]
      of[color=blue][color=green]
      > > argument or invalid property assignment' ... have anyone seen this[/color][/color]
      problem?[color=blue][color=green]
      > > thanks ....[/color]
      >
      > No. Post your code.
      >
      > Do you have something else named 'DateDiff'? (right click on the
      > function name in your code and select 'Definition' to see if it takes
      > you somewhere unexpected).
      >
      > When you enter DateDiff( what does intellisense show?
      >
      > Does using VBA.DateDiff work?[/color]


      Comment

      Working...