R
Randall Arnold
I'm going nuts on this one.
My client wants to use a combo box to filter certain records on a form while
in record Edit mode, and use the same combo to select a value to add to a
new record while in record Add mode. My assumption was that I could test to
see if an Add operation was in progress and allow the field value to change
if so; otherwise, I would Cancel the change in the form's BeforeUpdate event
(since in Edit mode I want to use the combo *solely* for filtering of
records-- the field value should never be changed on this form). Naturally,
the combo is bound so that adding records is automatic and browsing the
records in Edit mode shows the proper field value.
Problem is, this idea doesn't work. The program crashes on the filter (in
the combo's change event sub) and says I'm trying to access a property "|"
(!!!???!!!) that doesn't exist.
Surely someone has done this before, but I can't find any examples. Anyone
know a resource to steer me toward? Many thanks!
Randall Arnold
My client wants to use a combo box to filter certain records on a form while
in record Edit mode, and use the same combo to select a value to add to a
new record while in record Add mode. My assumption was that I could test to
see if an Add operation was in progress and allow the field value to change
if so; otherwise, I would Cancel the change in the form's BeforeUpdate event
(since in Edit mode I want to use the combo *solely* for filtering of
records-- the field value should never be changed on this form). Naturally,
the combo is bound so that adding records is automatic and browsing the
records in Edit mode shows the proper field value.
Problem is, this idea doesn't work. The program crashes on the filter (in
the combo's change event sub) and says I'm trying to access a property "|"
(!!!???!!!) that doesn't exist.
Surely someone has done this before, but I can't find any examples. Anyone
know a resource to steer me toward? Many thanks!
Randall Arnold