the data of one field trigers the data of another


  1. Posts : 16
    Windows 7 Home Premium 64bit
       #1

    the data of one field trigers the data of another


    In MS Access how do I have one field's data trigger another data?
    I've tried this but no result:

    Private Sub rfi_closed_BeforeUpdate()
    If rfi_dt_to_contr = "NULL" Then
    rfi_closed = "NO"
    Else
    rfi_closed = "YES"
    End If
    End Sub

    If "rfi_dt_to_contr" is empty I want the field "rfi_closed" to be "NO" and if there is data [i.e. a date] it is to be "YES".
      My Computer


  2. Posts : 1,030
    Linux Mint / XP / Win7 Home, Pro, Ultimate / Win8.1 / Win10
       #2

    Hmm, it's been a while but as I recall NULL is not the same as EMPTY.

    Regards,
    GEWB
      My Computer


  3. Posts : 9,746
    Windows 7 Home Premium 64 bit sp1
       #3

    This MS website may help you as there is a list of the various types of field data information requests. Refer to the list down the left hand side to check for other types.

    IsNull Function
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:06.
Find Us