473,320 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Reference Fields within the same Record

I have a table with information about an individual and their supervisory chain and what job title the employee is.

If done correctly the top of the supervisory chain will be entered in first and then the employees which they supervise after that. When I print out the form I list the employee and their information as well as the supervisor information. How can I list the supervisor position on the report as well without breaking open a new table?

I see the method, I am just unable to come up with the code for putting the referenced field in another record if it is equal to the current field in this record.

Thanks

--Beat
Sep 22 '06 #1
1 1494
I have a table with information about an individual and their supervisory chain and what job title the employee is.

If done correctly the top of the supervisory chain will be entered in first and then the employees which they supervise after that. When I print out the form I list the employee and their information as well as the supervisor information. How can I list the supervisor position on the report as well without breaking open a new table?

I see the method, I am just unable to come up with the code for putting the referenced field in another record if it is equal to the current field in this record.

Thanks

--Beat
-------------------------------

I hate to tell you, but you really should already have at least 3 tables. One for the departments, one for supervisors and one for the employees.
The department table would have a department id, department name and whatever else you would like to know about the department. This allows for flexibility of adding/changing/deleting supervisors and employees.
Then the supervisor table would include the department id so there would be a link between the two. This would allow for ease of changing supervisors in and out of departments.
The employee table would also have a department id that it would use as a link to the department and supervisor tables.
With this set up, you don't have to change each employee record each time a supervisor is changed.
To handle the maintenance in these tables you need a main form and a subform/s that connect on department id.
For reporting, you would use queries to connect the tables. This would allow you to report your info in any grouping you choose to.
Microsoft has helpful info on how to create forms and subforms at: http://office.microsoft.com/en-ca/assistance/HP051883951033.aspx

jkantner
Sep 22 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Gleep | last post by:
Hey Guys, I've got a table called Outcomes. With 3 columns and 15 rows 1st col 2nd col 3rdcol outcome date price There are 15 rows...
9
by: Gleep | last post by:
sorry i didn't explain it correctly before my table is like this example fields: ID name username outcome date1 date2 date3 (etc..) - date15 price1 price2 price3 (etc..) I know that...
8
by: Bri | last post by:
Greetings, I am using Eval() in a query with only limited success. If the text within the function contains a reference to a Field I get #ERROR#. I'll try and explain what I'm trying to do and...
2
by: Ric#k | last post by:
Is it possible to reference all the public properties that are in a class within that class's constructor using REFLECTION, and then reference them with a string variable? I have a class that will...
0
by: MrMike | last post by:
Hi. I have an asp:ImageButton which appears when a datagrid row is placed in Edit mode. The button has it's own click event which fires when the button is clicked. Within the button's click...
0
by: Bkster | last post by:
I have an access database where I have a main table built where records are being inserted from a web page. I have several fields that reference the same table. For example in this form you can...
6
by: fstenoughsnoopy | last post by:
I have a customer order database and I need to pull a customers information, ie first name, last name, address, city, state, zip, phone, etc, into the oder table. i don't know how to go about...
11
by: Scotter | last post by:
Hi everyone, I'm having an issue with getting my fields to update when i change records. I have a main form and a subform. The main form has "total", "deposit", and "due" text boxes. The subform...
4
by: gillianbrooks91 | last post by:
Forgive me for asking this question, I've trawled through nearly every available post on this subject that I can find for a few weeks now but nothing quite points me in the right direction. I'm...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.