Graeme,
I realize I neglected to state that Q_PersonnelA is a query. The table it
is based on is called Personnel.
I am at a disadvantage of tyring to make changes to database that has been
modified by various means over the years by my agency and some of the
programming behind is convoluted and doesn't make sense sometimes. I will
try to be as brief as I can in outlining the way the combo boxes were set up
and being used.
The form itself is for data entering services that our staff provides to our
clients. The data entry was pretty simple, client name, date, start time,
end time, off site or onsite, service procedure (combo/list box) and staff
name. When a service procedure was selected it listed the appropriate
billing code in a separate field and then listed the description in the drop
down. When the staff name was selected it listed the staff's ID in a
separate field and the staff name in the drop down. The two boxes didn't
have specific relationship with each other, not like I need them to be now.
Due to changes in Federal and State regulations (HIPPA) there were a lot of
changes in the way the services are documented and entered. So now all of
the service procedures are based on our staff's credential level (RSA, MHP,
QMHP, MA, Ph.D, etc) this was simple enough to add to the personnel table, I
added a field called Staff Level and for each staff indicated their level.
For the services procedure table, it was a little more complicated because
there are services that only an RSA can provide, but an MHP can perform any
service that an RSA provides plus what is specific to their level, so on an
so forth for a QMHP, MA, PH.D,etc. So I added 5 additional fields to the
Service proc table to accomodate this.
So the drop down that has the staff names has two columns, Name and Staff
Level with Name being the bound column -I switched the staff ID with the
Staff Level. The drop down that has the service procedures currently has 3
columns, Code, Staff level 1, description (I was trying to just use the Staff
Level 1 instead of all five just to see if it worked) - Staff level 1 is
populated by RSA, Level 2 MHP, Level 3 QMHP, Level 4 Masters, Level 5 Other.
The bound column is 1, Code. This field is the billing code that appears in
a different field when a service procedure is selected.
I was trying to use and change what already existed, but I'm thinking that
there may be some other changes to either both of the underlying tables or
the form itself. I was hoping it would be just a simple thing to do, to
filter one from the other.
I do appreciate the time and help you are giving me and I hope this
information helps.
Graeme Richardson said:
Hi,it might help to post the table structure of the two tables and how they
are linked.
e.g.
Q_PersonnelA
Name
Staff Level
Service Procs
Code
Staff Level 1
Description
Reading your scenario it looks like you need to normalise the Service Procs
table. Unless by the explanation "...different fields (field 1 = RSA, field
2 = MHP, field 3= PhD, etc..) ..." you mean "... different records (record 1
= RSA,..."
Which control do you populate first, [Service By Drop Down] or [Select List]
Graeme.