Multi-Select Boxes and Subform Help

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Forgive me if this has been covered previously, I did search but had
trouble applying what I read to my scenario. So, here goes...

I work in a drug rehab, and am working on a database that stores our
intake/discharge information. The database design is slightly ugly, I
inheritted it in worse shape and am slowly making changes. I'm trying
to add in the ability to track employee services, both direct and
indirect, to the database. I have the following tables (some detail is
left out):

tblClient
==========
Client_ID as PK (GUID)
FName
LName


tblEmployees
=============
Employee_ID as PK (GUID)
Employee_Name
Counselor (Boolean)
Active (Boolean)


tblServices
============
Svc_Code as PK (6-character Text)
Svc_Descrip
Require_ClientID (Boolean)
Allow_Multi_Client (Boolean)


tblTreatment
=============
TX_ID as PK (GUID)
TX_Counselor (1 to many on Employee_ID)
TX_Type (1 to many on Svc_Code)


tblClientSessions
==================
TX_Session (1 to many on TX_ID)
TX_Client (1 to many on Client_ID)
** These two are used jointly as PK

I've created a form that will allow me to select a counselor, a service
code, and some associated info not relevant to this (duration, date,
etc). What I need help doing is creating a subform that will list all
the client ID's in the system (I'll use various filter choices to
shorten it) on one side, and will let the user select a client and move
them (via an arrow button for example) to a list on the right (and a
corresponding button to move them back in case of errors). Then, when
the record is saved, the TX_ID and the Client_ID are writen to
tblClientSessions. I would like it to go one step further and even
limit the number of clients that can be selected based on the results
of the Allow_Multi_Client field if possible.

Unfortunately, I think my desire is currently beyond my knowledge,
hence why I'm posting here... I realize this isn't a short answer type
question, and I'll likely have follow-up questions for whoever answers,
but please, I could really use some help.

.



Relevant Pages

  • Re: a technical question about guids
    ... you can't guarantee uniqueness. ... If you assign unique ids to each client through a login or something, ... can roll your own GUID by concatenating the client id with the time and some ... the database is designed with tables having only one data ...
    (microsoft.public.sqlserver.programming)
  • Re: a technical question about guids
    ... Why would anybody use guid? ... client and knowing that is unique ... ... >> one database. ...
    (microsoft.public.sqlserver.programming)
  • Re: a technical question about guids
    ... > client and knowing that is unique ... ... we're all aware of the advantages of guid... ... unique within the database... ...
    (microsoft.public.sqlserver.programming)
  • Re: Opinions needed about the best "Middleware suite" kbmMW vs. RODA
    ... kbmMW supports cross db in such way that all you need to do in your application is to set one property to switch to ... What one have to concentrate about is minimizing the amount of data moved from the app server to the client. ... C/S setup's usually have a quite active chatter going on between the client and the database, ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Access 2003 Macro Security Modification
    ... the desired way to prevent the macro security warning is to ... digitally sign your database. ... Your database fileon the client computer. ...
    (microsoft.public.access.modulesdaovba)