UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> Checkbox Help    
 
   
DColey
post May 24 2005, 03:44 PM
Post #1

UtterAccess Enthusiast
Posts: 67
From: North Carolina



I have an employee database that has three different types of employees (officials, contractors, transcriptionists) with a separate table and form for each type of employee. On my "Officials" form, I have a checkbox that I can check to let me know if an official is also on the transcriptionist list. My goal is to not have to type in all of the officials and contractors who are also transcriptionists all over again. I want to be able to check that box on the "officials" form and the contact information will automatically be copied to the "transcriptionist" form and table. I'm sure this can be done, but I'm kind of new at this and don't have a clue how to make it happen.......HELP!!

Thanks in advance.
Go to the top of the page
 
+
dannyseager
post May 24 2005, 03:52 PM
Post #2

UtterAccess VIP
Posts: 13,031
From: Leicester, UK



You have a normalisation problem (your tables are not set up correctly...

The 3 types of employees belong in 1 table.
Go to the top of the page
 
+
Jack Cowley
post May 24 2005, 03:55 PM
Post #3

Retired Moderator
Posts: 37,716
From: The San Francisco Bay Area



If the data is the same for all employees (and I assume it is) then you only want one table for employees and a related table that lists their type of employement(s).

tblEmployees
EmployeeID (PK and auto)
LastName
FirstName
...etc...

tblPositionsLookup
PositionsID (PK and auto)
PositionName

tblEmployeePositions
EmployeePositions (PK and auto)
EmployeeID (FK)
PositionsID (FK)

hth,
Jack
Go to the top of the page
 
+
Jack Cowley
post May 24 2005, 03:56 PM
Post #4

Retired Moderator
Posts: 37,716
From: The San Francisco Bay Area



Hiya Danny -

Ya beat me by minutes...

Jack
Go to the top of the page
 
+
DColey
post May 24 2005, 04:05 PM
Post #5

UtterAccess Enthusiast
Posts: 67
From: North Carolina



I'm not sure I explained my situation correctly....

The officials are my only employees, however I manage a contractor list as well as a transcriptionist list. I have them all in one database, but for the most part the three are not related. My "officials" table has a lot more in depth information than the other two. The other two only contain basic contact information that about 2000 other people have access to. I do not send out the "officials" information. It has a lot of personal information that I don't want people having access to. I actually have the "officials" tables and forms password protected.

That being said, some of my official reporters do work as transcriptionists on the side, so there is certain contact information that I would like to send over to the "transcriptionists" form when I click the checkbox.

I hope I'm making sense.
Go to the top of the page
 
+
Jack Cowley
post May 24 2005, 04:15 PM
Post #6

Retired Moderator
Posts: 37,716
From: The San Francisco Bay Area



It sounds like Contractors and Transcriiptionists should be in the same table, not separate tables. If your data is properly normailzed, as suggested by Danny Seager, then you should be able to have a subform on the transcriptionist form that shows the related data that you want. A boolean field in the table of Contractors and Transcriptionists should work as a trigger to show or hide a subform on the Transcriptionist form.

hth,
Jack
Go to the top of the page
 
+
dannyseager
post May 24 2005, 04:59 PM
Post #7

UtterAccess VIP
Posts: 13,031
From: Leicester, UK



Jack... my answer might have been first but yours was of more substance.

You were missed when you were not on UA last week... I saw 2 threads wondering where you had gone.
Go to the top of the page
 
+
Jack Cowley
post May 24 2005, 05:04 PM
Post #8

Retired Moderator
Posts: 37,716
From: The San Francisco Bay Area



Danny -

Thank you for your kind words! I have been up to my eyebrows in a complex db and that is why I have not been around very much lately. I still have a long way to go on the db, but my brain is porridge so I have been taking some time off, now and again, and dropping in for a visit and to rest up the muddled synapses...

Jack
Go to the top of the page
 
+
dannyseager
post May 24 2005, 05:24 PM
Post #9

UtterAccess VIP
Posts: 13,031
From: Leicester, UK



Any time Jack...

yeah dont you love the way that database logic prevents your brain from functioning on anything else whilst trying to sort out the details...

I'm looking at getting another assistant so I can hopefully spread the workload more... just gotta find the right 18 year old female candidate (IMG:http://www.utteraccess.com/forum/style_emoticons/default/frown.gif)
Go to the top of the page
 
+
Jack Cowley
post May 24 2005, 05:27 PM
Post #10

Retired Moderator
Posts: 37,716
From: The San Francisco Bay Area



Naughty naughty... Just pick the best looking applicant and then your can train her if she has no skills... (IMG:http://www.utteraccess.com/forum/style_emoticons/default/grinhalo.gif)
Go to the top of the page
 
+
dannyseager
post May 24 2005, 05:33 PM
Post #11

UtterAccess VIP
Posts: 13,031
From: Leicester, UK



Jack... That's the sort of idea that'll get me single..

I've not got time to train anyone really so I'm looking for someone that know's their way round SQL server, Access and ASP...

You dont fancy relocating do you (IMG:http://www.utteraccess.com/forum/style_emoticons/default/frown.gif) You must be getting sick of all that gorgeous weather by now (IMG:http://www.utteraccess.com/forum/style_emoticons/default/frown.gif)
Go to the top of the page
 
+
Jack Cowley
post May 24 2005, 05:36 PM
Post #12

Retired Moderator
Posts: 37,716
From: The San Francisco Bay Area



Don't tell!!!

I would love to relocate but the last time I was there King Charles banned me to America for life....
Go to the top of the page
 
+
jmcwk
post May 24 2005, 05:41 PM
Post #13

UtterAccess VIP
Posts: 12,201
From: Tacoma, WA.



BUT! What about the Vino? Couldn,t resist!

Edited by: jmcwk on Tue May 24 18:42:14 EDT 2005.
Go to the top of the page
 
+
DColey
post May 24 2005, 05:44 PM
Post #14

UtterAccess Enthusiast
Posts: 67
From: North Carolina



Thanks for the info, guys. I know where to go with the contractors and transcriptionists tables and forms....but how can I tie in the fact that some officials' contact information needs to be on the transcriptionist table? I'm still a little confused as to the best way to go about that since they won't be on the same table.

Could I use an update query to accomplish this task?

Remember, I'm learning. Hope I'm not being annoying.
Go to the top of the page
 
+
dannyseager
post May 24 2005, 05:45 PM
Post #15

UtterAccess VIP
Posts: 13,031
From: Leicester, UK



I wish someone would ban me to america for life (IMG:http://www.utteraccess.com/forum/style_emoticons/default/frown.gif)
Go to the top of the page
 
+
Jack Cowley
post May 24 2005, 05:46 PM
Post #16

Retired Moderator
Posts: 37,716
From: The San Francisco Bay Area



LMAO!!!

If I had not been banned I would have the wine shipped to me, though some of the good California wines are readily available in the UK... If Betty (the current queen) lifts the ban I will get on the first ship loaded with California wines and head back....

Jack
Go to the top of the page
 
+
dannyseager
post May 24 2005, 05:52 PM
Post #17

UtterAccess VIP
Posts: 13,031
From: Leicester, UK



Why anyone would give up life in california for drizzly bleak england I could never guess...
Go to the top of the page
 
+
Jack Cowley
post May 24 2005, 05:57 PM
Post #18

Retired Moderator
Posts: 37,716
From: The San Francisco Bay Area



You are not annoying as everyone of us has been where you are....

You do not put the data from the 'Officials' table into the other tables because that would cause redundant information and that is something that is a big no-no in a relational database. What you do is 'relate' the tables and how best to do that I cannot say as I have not seen your structure. My guess would be that you need a junction table so that you can join the Official table and the other tables. This way you can get the data from the Officials table and show it on the form that has data from the other table with Contractors and Transcriptionists. The junction table might look like this:

tblOfficialsAndOthers
OfficialAndOthersID (PK and auto)
OfficialID (FK)
ContractorTranscriptionistID (FK)

hth,
Jack
Go to the top of the page
 
+
Jack Cowley
post May 24 2005, 05:59 PM
Post #19

Retired Moderator
Posts: 37,716
From: The San Francisco Bay Area



It is very photogenic there on the 3 days that the sun shines...

On second thought maybe I will just hang out here in the spectaular Bay Area...
Go to the top of the page
 
+
DColey
post May 24 2005, 06:03 PM
Post #20

UtterAccess Enthusiast
Posts: 67
From: North Carolina



Will work on it. Thanks for the advice.
Go to the top of the page
 
+

3 Pages V   1 2 3 >
Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 20th May 2013 - 04:34 PM