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

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> I refuse to believe Access is that ugly (mabye just my approach)    
 
   
swmagic
post Apr 7 2005, 01:10 PM
Post #1

UtterAccess Addict
Posts: 107



Ok here goes.

A form with a subform. The subform uses a query with table C and D wherein D is the Account Master.

Table C has 1 record per Person per Account per Year. I want to display 5 columns:
The Account
Year 1, Amount and Comment
Year 2,...
Year 3,...
Year 4, ...

The Years are fed from a dropdown in the form using a function to filter each record and which column it belongs to, 1 to 4.

Now my limit. Using standard subform, I can only display 1 year's amt & comment per record. Even if I use a filter and multiple columns, only one column per row will still display. So...

Now the ugly.

I used SELECT DISTINCT and multiple subforms to handle it (they work). But now I HAVE to have the same number of records managed for each person/account to accommodate horizontal alignment between subforms and don't even ask about Add and Delete a row.

Ugly, c'est non?

HELP!
Go to the top of the page
 
+
dannyseager
post Apr 7 2005, 01:15 PM
Post #2

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



Can you maybe post a stripped down copy of your DB?

There could be a normalisation issue which when resolved will make your life easier.
Go to the top of the page
 
+
swmagic
post Apr 7 2005, 01:21 PM
Post #3

UtterAccess Addict
Posts: 107



I will work on the DB posting...but be aware that this cannot become non-normalized, that's where it started, the detail records contained 10 years, 10 fields per record and the user hit their limit this year. I can't see them reverting to that non-normalized technique.

Comments welcome.
Go to the top of the page
 
+
dannyseager
post Apr 7 2005, 03:38 PM
Post #4

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



are you saying you have a table with 10 years as 10 seperate fields? If so then that is not normalised... You have repeating groups.
Go to the top of the page
 
+
swmagic
post Apr 7 2005, 03:53 PM
Post #5

UtterAccess Addict
Posts: 107



Yes. It WAS non-normalized with 1 record having 10 separate fields, Year1, Amt1, Year2, Amt2, etc.

That is now been restructured into a normalized mode...the original record has now been broken apart into 10 separate records, normalized.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 24th May 2013 - 08:44 AM