F
Fathi via AccessMonster.com
Hello,
I have this sql
"SELECT Sum(Ou_Detail.[Delivery quantityTOTAL])" _
& "FROM Outbound_Detail" _
& "WHERE (((Ou_Detail.Material)" _
& "In (SELECT M_MatInfo.Material FROM M_MatInfo" _
& "WHERE M_MatInfo.[Serial No Profile]= " & "4" & "))" _
& "AND ((Ou_Detail.YYYYMM)=" _
& "[forms]![form_total_volume]![f_Period])" _
& "AND ((Ou_Detail.WRHS)=[forms]![form_total_volume]![f_Plant]))
;"
how i can run this statment?
the result will be stored in a field named "total_qty" in the form
"form_total_volume" , how i can do this?
when i open the form i want to be able to press button to return the result
from the sql statment into text box. considering that i have parameter in the
form, i already included the parameters in the sql statment, do you think
this will work?
any help?
I have this sql
"SELECT Sum(Ou_Detail.[Delivery quantityTOTAL])" _
& "FROM Outbound_Detail" _
& "WHERE (((Ou_Detail.Material)" _
& "In (SELECT M_MatInfo.Material FROM M_MatInfo" _
& "WHERE M_MatInfo.[Serial No Profile]= " & "4" & "))" _
& "AND ((Ou_Detail.YYYYMM)=" _
& "[forms]![form_total_volume]![f_Period])" _
& "AND ((Ou_Detail.WRHS)=[forms]![form_total_volume]![f_Plant]))
;"
how i can run this statment?
the result will be stored in a field named "total_qty" in the form
"form_total_volume" , how i can do this?
when i open the form i want to be able to press button to return the result
from the sql statment into text box. considering that i have parameter in the
form, i already included the parameters in the sql statment, do you think
this will work?
any help?