Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need Correct Make Table Query Syntax? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    I have the following Make Table Query, that works except for the following portion:

    DCount("strDrid","tblDentists","[strDrid]<" & [RecipientID])+1 AS ID

    I

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

    Re: Need Correct Make Table Query Syntax? (a2k (9.0.6926) SP-3 Jet 4.0 SP-

    Since strDrid is a text field, you must enclose the comparison value in quotes, even if it looks like a number. Try

    DCount("strDrid","tblDentists","[strDrid]<" & Chr(34) & [RecipientID] & Chr(34))+1 AS ID

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Need Correct Make Table Query Syntax? (a2k (9.0.6926) SP-3 Jet 4.0 SP-

    Thank you

Posting Permissions

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