Results 1 to 2 of 2
  1. #1
    jgelpi16 is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544

    Question Checking for data in table

    I have a table illustrated as follows:

    Data1 Data2 Data3 Data4
    Reason1 Val1 Val2 Val3 Val4
    Reason2 Val5 Val6 Val7 Val8


    Reason3 Val9 Val10 Val11 Val12

    I have a value in a text box. I want to check to see if the value is greater than Val1, between Val2 and Val3 or less than Val4. I also have a indicator "1", "2" and "3". If the indicator is "1" I want to check against the vals for Reason1. If the indicator is "2" I want to check against the vals for Reason2, etc.

    Any suggestions as to how I can get started on this will be greatly appreciated. I'm not sure DLookup() will work for this case.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I'm going to suggest a User Defined Function (UDF) that accomplishes the task.

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

Similar Threads

  1. checking existence of records
    By akbigcat86 in forum Programming
    Replies: 6
    Last Post: 07-20-2010, 02:45 PM
  2. Checking if files exists
    By geoffishere in forum Access
    Replies: 1
    Last Post: 02-09-2010, 01:32 PM
  3. Checking for Value in Query
    By jgelpi in forum Access
    Replies: 1
    Last Post: 06-24-2009, 04:57 PM
  4. Checking a record in a table
    By widstje in forum Programming
    Replies: 4
    Last Post: 11-07-2007, 11:28 AM
  5. Need help checking database design
    By abc7 in forum Database Design
    Replies: 1
    Last Post: 10-29-2007, 08:08 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