Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    May 2003
    Location
    Kansas City, Kansas, USA
    Posts
    76
    Thanks
    1
    Thanked 0 Times in 0 Posts

    DCount Error (2002)

    Hi I am trying to do a count of a query and I was using DCount on my form, but I keep getting an error message saying Complie Error: Expected : = I don't know why I am getting the error, any help? Here is the expression I am trying to use: DCount("*","subSHreminder","Plan Name=" &Chr(34)&[Plan Name] & Chr(34))

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: DCount Error (2002)

    If you want to use this in the control source of a text box, you must precede the expression with =:
    <code>
    =DCount("*","subSHreminder","Plan Name=" & Chr(34) & [Plan Name] & Chr(34))
    </code>
    Also note the spaces before and after each &.

  3. #3
    Star Lounger
    Join Date
    May 2003
    Location
    Kansas City, Kansas, USA
    Posts
    76
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: DCount Error (2002)

    Thank You! I knew it had to be something simple...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •