T
TC
Do you really have a space before the dot? If so, VBA would be expecting a
with/end with construct:
with txtModel
if<space(s)>.Value ...
end with
In that example, .Value would refer to the "with" item: txtModel. This is a
coding technique for avoding multiple references to the item, when you want
to set several properties of one item.
Otherwise, you should drop the space:
if txtModel<no space!>.Value ...
Also, I think that IS NOT NULL is only valid in SQL (but I don't have Access
here to check). In VBA, use the IsNull() function:
if Not IsNull (txtModel) then ...
HTH,
TC
with/end with construct:
with txtModel
if<space(s)>.Value ...
end with
In that example, .Value would refer to the "with" item: txtModel. This is a
coding technique for avoding multiple references to the item, when you want
to set several properties of one item.
Otherwise, you should drop the space:
if txtModel<no space!>.Value ...
Also, I think that IS NOT NULL is only valid in SQL (but I don't have Access
here to check). In VBA, use the IsNull() function:
if Not IsNull (txtModel) then ...
HTH,
TC