How can I put an IFF statment after [PSI_RTS] <=84 to subtract -2 days and if > 84 than subtract -3 days, 84 being the primary key.
Private Sub Text195_Click()
Text195 = DLookup("[BLDCED_Cur]", "TAB_LM6000", "[PSI_RTS]=forms![frmMaster_addLM6000]![PSI_RTS]-2")
End Sub
Text195-Main Assy ST [BLDCST_Cur] is the event code to subtract 2 days.
Text189-Main Assy End [BLDCED_Cur]
TAB_LM6000 - Table
[frmMaster_addLM6000]-Form
[PSI_RTS]-Text271 primary Key 84