View Single Post
  #4  
Old March 16th, 2010, 02:52 AM posted to microsoft.public.access.forms
Kc-Mass
external usenet poster
 
Posts: 362
Default Problem forcing users to use a certain combobox first

Larry

I put code in the on open event of the form to switch the othercombo boxes
enabled property to "No". - Me.cboJobType.Enabled = False.

I get the same error I expressed before but now it references the on open
event.

Ideas
"kc-mass" connearney_AT_comcast_DOT_net wrote in message
...
Hi

I have a form designed to allow the manipulation of employee data
(assignments types, commission types and levels etc. The first thing a
user has to do is select the employee from a combo box whereupon the form
fills in with the current data. There are then 6 unbound combo boxes that
manipulate the current data by offering new selections and then in the
afterupdate event filling in fields through the application of formulas
and data transfers to the bound fields.

The problem is that when the user does not first select an employee but
instead starts with the field options in the other combos, access wants to
create a new record and once it does the employee cant' be selected util
the unwanted record is saved which I don't want to do - its trash.. I
tried intercepting the other combos in their before update, onclick and
gotfocus events but I get a strange error message of "The expression On
Got Focus you entered as the event property setting produced the following
error: Procedure declaration does not match description of event or
procedure having the same name." It then goes on to say that there may be
a missing reference or mispelled procedure name. Access created all the
procedure names and there are no missing references.

I've thought of simply hiding the other combos until they pick an employee
but that seems a little goofy.

Any ideas or smart options?

Thanks

Kevin

Any ideas