Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    joemills62 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    21
    yes the table and form is called directors, however

    the variable is taken from the form contact_details.



    the form directors is only used if the condition is true or we wish to add new data

  2. #17
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    See if:
    intChk = DCount("*", "directors") > 0
    ...still throws an error.

  3. #18
    joemills62 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    21
    the error is gone,
    but its not checking to see if true or falso

  4. #19
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    That tells you Access does not like something in the criteria:
    "[contact] = '" & Me.[contact name] & "'"
    ...it implies the two are not the same datatype.

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

Similar Threads

  1. VBA loop to check data
    By Cheshire101 in forum Programming
    Replies: 2
    Last Post: 05-02-2011, 08:39 AM
  2. check textbox1 on each record of report
    By sconard in forum Access
    Replies: 8
    Last Post: 04-13-2011, 12:26 PM
  3. Check multiple data
    By carstenhdk in forum Access
    Replies: 1
    Last Post: 05-05-2010, 10:19 AM
  4. Replies: 9
    Last Post: 04-27-2010, 01:00 PM
  5. Apply check at record level
    By wasim_sono in forum Programming
    Replies: 1
    Last Post: 04-19-2007, 07:48 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
  •  
Other Forums: Microsoft Office Forums