If DCount("*", "tbl_lockoutdatabase", "[inserviceYN] = 'Y' ") = 1 Then Forms!newdesign!Frame.SourceObject = "MainSwitchboard"
I have a table with one record that gets updated so there is one record with two possible values either Y or NULL
I want to use DCOUNT to count how many records with Y there and since there should only be one - if it's is = 1 then we go back to the main form.
I have a table with one record that gets updated so there is one record with two possible values either Y or NULL
I want to use DCOUNT to count how many records with Y there and since there should only be one - if it's is = 1 then we go back to the main form.