Results 1 to 4 of 4
  1. #1
    nirvana0 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    3

    Test if a value exist or not

    Hi everyone,

    Well , i have a table Terminal with 2 fields( A and B).=> I want to make a querry (UPDATE) to test if the value starting from line 2 is present (we check both fields A and B) => if the value is present in A , all the similar values moves to A(if it is already in A=>it remains there else it moves to A) , same thing for B.



    Click image for larger version. 

Name:	english.png 
Views:	8 
Size:	87.8 KB 
ID:	18079

    thanks for you re help.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Is this it?

    select Iif(isNull([fieldA]),"absent","present") as F1, Iif(isNull([fieldB]),"absent","present") as F2 from TERMINAL

  3. #3
    nirvana0 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    3
    No , well ill explain more.

    In ACCESS, i want an UPDATE request that can test from the FIRST SIMILAR VALUE (there is more than100 values) => for exemple: if first value = X is in A then all the other X that are in the table (even in field A or B) have to be IN FIELD A. and same for the other.
    I put the file in attachements pieces.
    Thank you.
    Attached Files Attached Files

  4. #4
    nirvana0 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    3
    I just want a request so i can make it. I cant find :s

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

Similar Threads

  1. Test String test besed on table data
    By igourine in forum Programming
    Replies: 3
    Last Post: 12-01-2013, 06:16 AM
  2. If no records exist
    By mrwhitehat in forum Reports
    Replies: 1
    Last Post: 08-27-2013, 12:51 AM
  3. If value already exist or not in the table
    By dada in forum Programming
    Replies: 3
    Last Post: 08-19-2010, 01:57 AM
  4. 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
  5. Replies: 1
    Last Post: 08-22-2006, 04:27 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