I am having trouble getting the following segment of my code to run:
I am not getting any errors, but it is not displaying the expected behavior. Can I combine Dlookup functions this way?
Any help is greatly appreciated!
Code:
If DLookup("PCP", "REVIEW_PANEL_TABLE", "[PCP] = -1") Then If DLookup("GWSHW_BL", "REVIEW_PANEL_TABLE", "'[GWSHW_BL]' = 'Forms!DRAWING_INFO_FORM!Subform_DRAWING_STATUS!Subform_DRAWING_STATUS_CONFIGURATION_HWCI_BL!BL_HWCI_HWCI'") Then If DLookup("GWSHW_HW", "REVIEW_PANEL_TABLE", "'[GWSHW_HW]' = 'Forms!DRAWING_INFO_FORM!Subform_DRAWING_STATUS!Subform_DRAWING_STATUS_CONFIGURATION_HWCI_BL!BL_HWCI_HWCI'") Then strMessage = "Change fourth digit - HWCI/BL has been certified." MsgBox strMessage, vbInformation, "Action Required" Else strMessage = "Change fifth digit" MsgBox strMessage, vbInformation, "Action Required"
Any help is greatly appreciated!
Comment