D
Dejan
I have problem with assigning the value of combo box to
variable. When user clicks on command button on same
form....
Private Sub Command24_Click()
Forms!QtrlyRptIntl!Country.SetFocus
Forms!QtrlyRptIntl!Country.Value = TempValue
DoCmd.RunSQL "UPDATE tQtrRptIntlIncome SET
tQtrRptIntlIncome.[1stQtrTotal] = (([1stQtrIncGrp])+
([1stQtrIncSales])+([1stQtrIncOther])),tQtrRptIntlIncome.
[2ndQtrTotal] = (([2ndQtrIncGrp])+([2ndQtrIncSales])+
([2ndQtrIncOther])),tQtrRptIntlIncome.[3rdQtrTotal] =
(([3rdQtrIncGrp])+([3rdQtrIncSales])+
([3rdQtrIncOther])),tQtrRptIntlIncome.[4thQtrTotal] =
(([4thQtrIncGrp])+([4thQtrIncSales])+
([4thQtrIncOther])),tQtrRptIntlIncome.YTDTithe =
(([1stQtrTithe])+([2ndQtrTithe])+([3rdQtrTithe])+
([4thQtrTithe])) Where Country=" + "'" + TempValue + "'"
DoCmd.OpenStoredProcedure "Qupd-
tQtrIncomeIntlYTDTotal", acViewNormal, acEdit
DoCmd.OpenStoredProcedure "Qupd-tQtrLdrshipIntl",
acViewNormal, acEdit
End Sub
.....TempValue is always blank(="").
Anybody knows why?
Thanks
variable. When user clicks on command button on same
form....
Private Sub Command24_Click()
Forms!QtrlyRptIntl!Country.SetFocus
Forms!QtrlyRptIntl!Country.Value = TempValue
DoCmd.RunSQL "UPDATE tQtrRptIntlIncome SET
tQtrRptIntlIncome.[1stQtrTotal] = (([1stQtrIncGrp])+
([1stQtrIncSales])+([1stQtrIncOther])),tQtrRptIntlIncome.
[2ndQtrTotal] = (([2ndQtrIncGrp])+([2ndQtrIncSales])+
([2ndQtrIncOther])),tQtrRptIntlIncome.[3rdQtrTotal] =
(([3rdQtrIncGrp])+([3rdQtrIncSales])+
([3rdQtrIncOther])),tQtrRptIntlIncome.[4thQtrTotal] =
(([4thQtrIncGrp])+([4thQtrIncSales])+
([4thQtrIncOther])),tQtrRptIntlIncome.YTDTithe =
(([1stQtrTithe])+([2ndQtrTithe])+([3rdQtrTithe])+
([4thQtrTithe])) Where Country=" + "'" + TempValue + "'"
DoCmd.OpenStoredProcedure "Qupd-
tQtrIncomeIntlYTDTotal", acViewNormal, acEdit
DoCmd.OpenStoredProcedure "Qupd-tQtrLdrshipIntl",
acViewNormal, acEdit
End Sub
.....TempValue is always blank(="").
Anybody knows why?
Thanks