CrystalStart
IS-IT--Management
I am running code
If Forms![Update_master-data-charges]!txt_Check_Dates.Value = True Then
MsgBox "Data for this Pay Period is exists in the master-data-charge table"
Else
DoCmd.RunMacro "Run_Update_master-data-charges"
DoCmd.Close acForm, "Update_master-data-charges", acSaveYes
DoCmd.OpenForm "Run_Delinquent_By_EC_Member_Report"
End If
and it is running all DoCmds anyway whether txt_Check_Dates has value or not.
Please help
If Forms![Update_master-data-charges]!txt_Check_Dates.Value = True Then
MsgBox "Data for this Pay Period is exists in the master-data-charge table"
Else
DoCmd.RunMacro "Run_Update_master-data-charges"
DoCmd.Close acForm, "Update_master-data-charges", acSaveYes
DoCmd.OpenForm "Run_Delinquent_By_EC_Member_Report"
End If
and it is running all DoCmds anyway whether txt_Check_Dates has value or not.
Please help