M
mark r
Please help me turn this pseudo code into functional
actual code:
AfterUpdate Textbox_of_table1field1
for each record in table2
if table2.id = table1.id then
if me.field1 = "lawn" or "sandlot"
then
set table2.field2 = me.field1
' the user may have made the Textbox NULL using the
delete key
else if ISNULL(me.field1) then
set table2.filed2 to be null also
else set table2.filed2 = "concrete”
exit for
end if
next
end sub
actual code:
AfterUpdate Textbox_of_table1field1
for each record in table2
if table2.id = table1.id then
if me.field1 = "lawn" or "sandlot"
then
set table2.field2 = me.field1
' the user may have made the Textbox NULL using the
delete key
else if ISNULL(me.field1) then
set table2.filed2 to be null also
else set table2.filed2 = "concrete”
exit for
end if
next
end sub