473,379 Members | 1,278 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,379 software developers and data experts.

Table Design

5
Hello,

I'm having trouble deciding how to design this simple database. The main problem is that I have separate tables with the field 'fiscal year' but I want them to be joined into one when querying.

The goal of this is to create a database to store project information where users will be able to create reports on project funding, status, etc. I've created an 'entry form' with subforms for contacts, partner, fte, status, and funding. Users can enter information into FTE fields, Status fields and Funding fields based on a fiscal year... This is no problem.

Contacts and Partners are 1-1 because there is only one record associated per project - we chose to break up contacts and partners into two separate tables because it was getting rather long. FTE, Status and Funding are 1-M because there are multiple records associated per project because each record is based on fiscal year.

The problem is as follows:
When I do a query, I'd like to be able to select a fiscal year... and I'd like to get all the information from FTE, Status and Funding. Should I create a separate table Fiscal Year to join all the fiscal years from FTE, Status and Funding? Where would the fiscal year go and how would this be designed (lookup table, etc)?

I'm using Microsoft Access 2002
Attached Images
File Type: jpg tabledesign.jpg (10.4 KB, 86 views)
Jun 25 '10 #1
1 1235
Stewart Ross
2,545 Expert Mod 2GB
Hi. You don't need a separate table for this. The normal way to do it would be to have a drop-down box, say, in a userform which allows the user to select the fiscal year, then if a report is being generated to apply a filter based on the chosen fiscal year to the report when it is opened.

If I give an example this may be a bit clearer. I don't know the names of your tables, queries and fields, so bear this in mind when reading the skeleton below.

Assuming you have an unbound combo box on your form named cboSelectFiscalYear and that the fiscal year value is text (not a number):
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenReport "rptYourReportName", acViewPreview, , "Fiscal_Year like '*" & Nz(cboSelectFiscalYear) & "'"
All that this does is to filter the report by the value of the fiscal year selected by the user in the combo. The Nz function referred to in the example substitutes an empty string if the combo has no current value (no fiscal year selected), and the use of LIKE with an opening wildcard character of '*' is to ensure that all years are returned if no entry is made.

If the fiscal year is just a number LIKE cannot be used and the comparison would be a little different - please advise what really applies in your case.

-Stewart
Jun 28 '10 #2

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

Similar topics

3
by: Dan Williams | last post by:
I'm trying to do a simple alteration to the table design of one of our SQL 2k tables, simply changing an identity row so that its not 'not for replication', and its taking absolutely ages to do so,...
1
by: mksql | last post by:
As an example, I am building an authentication mechanisim that will use data in the 3 left tables to determine rights to objects in a destination table, diagrammed below. In this structure,...
2
by: deko | last post by:
This may be an easy question, but for some reason the multiple table design idea is throwing me. I'm trying to avoid using one large, wide table - so I've got multiple tables that hold different...
8
by: Stewart Allen | last post by:
Hi Just asking for ideas on table design. The design I have is as follows: *tblBuildData* BuildID (PK) AutoNumber ManufactureDate SerialNumber
5
by: BerkshireGuy | last post by:
Hello everyone, I want to create an employee license plate database and need help with the best table design. I was thinking three tables: 1) tblEmployees EmployeeID EmployeeName
6
by: MLH | last post by:
If I open an A97 table, resort its key-field to descending order and attempt to close the table, A97 asks me if I wish to save the table DESIGN? Now really, I don't think the table design is being...
4
by: lorirobn | last post by:
Hello, I'd be curious to hear other thoughts on my database and table design. My database is for 'space use' in a lodging facility - will hold all spaces, like rooms (lodging rooms, dining...
3
by: shahram.shirazi | last post by:
Hi guys, I was wondering if someone could help me a bit here. Im trying to desing an electronic register system for a school. In terms of the table design, I obviously need a Student Details...
1
by: keliie | last post by:
I have a relatively simple (I assume) issue which I am at a complete loss to address. My issues is: I want to populate fields in my tables with summary data from the same table. Let me explain: ...
0
by: jsimone | last post by:
This question is about DB2 table design and performance. We are using DB2 UDB Enterprise 8.2 on Linux. We have 6 tables in a parent-child (one-to-many) relationship with each other. Each...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.