Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18

Reading in table

  1. #16
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    18,358
    You have to bracket the field name because of the inadvisable space.
    Paul (wino moderator)
    MS Access MVP
    www.BaldyWeb.com

  2. #17
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    1,215
    If DCount("Case_Number", "Individual", "[Last Name] = " & "'" & var & "'") > 0 Then

    Maybe since DCount returns a number, compare it to a number...

  3. #18
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    18,358
    Good catch. I was focused on the DCount() and didn't notice the Null bit.
    Paul (wino moderator)
    MS Access MVP
    www.BaldyWeb.com

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. problem reading table from VB code
    By nello87to in forum Modules
    Replies: 3
    Last Post: 08-16-2016, 12:59 PM
  2. Reading XML
    By ricksil in forum Programming
    Replies: 1
    Last Post: 05-17-2016, 07:47 AM
  3. Reading VBA code
    By ksammie01 in forum Access
    Replies: 11
    Last Post: 01-11-2013, 02:40 PM
  4. Control Source on Form Reading Value in Table
    By hammer187 in forum Forms
    Replies: 1
    Last Post: 10-23-2012, 01:43 PM
  5. Reading row length
    By dnlhmpt in forum Import/Export Data
    Replies: 2
    Last Post: 01-31-2012, 06:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Tech Forums: Microsoft Office Forums