Hello,
The following code is showing syntax error, as understand this should be because of the single double quotes, any support please.
Thanks
strDeleteRegData = "DELETE tblDistReg.*, RegisterID FROM tblDistReg " _
& "WHERE (((tblDistReg.RegisterID)=DLookUp('PlanID','tblDistPlan','LocationID_FK=' & Forms!frmDistRegisterHomeAdd!cboLocationName" _
& "' And MonthOfDist =' & Forms!frmDistRegisterHomeAdd!cboMonthOfDist)));"
The following code is showing syntax error, as understand this should be because of the single double quotes, any support please.
Thanks
strDeleteRegData = "DELETE tblDistReg.*, RegisterID FROM tblDistReg " _
& "WHERE (((tblDistReg.RegisterID)=DLookUp('PlanID','tblDistPlan','LocationID_FK=' & Forms!frmDistRegisterHomeAdd!cboLocationName" _
& "' And MonthOfDist =' & Forms!frmDistRegisterHomeAdd!cboMonthOfDist)));"