G
Guest
Hallo
I am having the following problem with a combo box it linked to a table and
I can select a name from the table works fine then I have the statement
afterupdate to set a field called QTY to 1 but when I erase the combo box
again I want it to set the QTY field back to 0 it does not do that
I have tried the following
1)
if isnull([forms]![Sales]![Combo]) then
[forms]![Sales]![QTY] = 0
Else
[forms]![Sales]![QTY] = 1
End if
2)
if [forms]![Sales]![Combo] = null then Even tryd = ""
[forms]![Sales]![QTY] = 0
Else
[forms]![Sales]![QTY] = 1
End if
It just does not change it back to a 0 it leaves it at 1
Does any one have any ideas on what i am doing wrong?
Regards
Markus
I am having the following problem with a combo box it linked to a table and
I can select a name from the table works fine then I have the statement
afterupdate to set a field called QTY to 1 but when I erase the combo box
again I want it to set the QTY field back to 0 it does not do that
I have tried the following
1)
if isnull([forms]![Sales]![Combo]) then
[forms]![Sales]![QTY] = 0
Else
[forms]![Sales]![QTY] = 1
End if
2)
if [forms]![Sales]![Combo] = null then Even tryd = ""
[forms]![Sales]![QTY] = 0
Else
[forms]![Sales]![QTY] = 1
End if
It just does not change it back to a 0 it leaves it at 1
Does any one have any ideas on what i am doing wrong?
Regards
Markus