Code:
PART_NO AMOUNT INV_NO
S434343 100 6007
F534534 120 6007
H543455 225
J785677 0
k545345 0
on command click
if INV_NO = null and AMOUNT = 0 then
msgbox "No valid amount available for invoice"
if INV_NO = not null and AMOUNT > 0 then
msgbox "no data found"
if INV_NO = null and AMOUNT > 0 then
RUN CODE
i have the code to update the INV_NO.
what i want is when i command click i want the invoice no to update only where the amount column value is > 0 and INV_NO column is blank.
otherwise give msgbox as above