Results 1 to 4 of 4
  1. #1
    tdaccess is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    7

    Question How to test of record exists in table?

    Is there a way to determine if a record exists in a table with SQL syntax? If the recode does exists, I want to return "T". If the record does NOT exists, I want to return "F".



    Thanks,

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    td,

    is there a reason for all of the questions all of a sudden?

  3. #3
    tdaccess is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    7
    Been away from Access for a long time and getting reoriented for a few task that I need to complete.

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    to test for existence in a table, you need a record indentifier and the "IN" subquery. You can also use the EXISTS subquery clause.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Keying in Test answers to Access DB from Written Test
    By CityOfKalamazoo in forum Access
    Replies: 3
    Last Post: 03-01-2010, 08:58 AM
  2. if record exists...conditional query criteria
    By mbryanr in forum Queries
    Replies: 2
    Last Post: 02-12-2010, 11:50 AM
  3. SQL - find out whether a table exists
    By yurako in forum Programming
    Replies: 2
    Last Post: 01-20-2010, 09:27 AM
  4. Replies: 1
    Last Post: 11-30-2009, 05:05 AM
  5. Create Table If Not Exists
    By jp2access in forum Queries
    Replies: 7
    Last Post: 07-14-2009, 12:49 PM

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