Select * from (
SELECT SSN, [Sent to Disbo], [Start Date], [End Date] FROM [M00091 Partial 2 Claims]
UNION SELECT SSN, [Sent to Disbo], [Start Date], [End Date] FROM [M00091 Partial 3 Claims]
UNION SELECT SSN, [Sent to Disbo], [Start Date], [End Date] FROM [M00091 Partial 4 Claims]
UNION SELECT SSN, [Sent to Disbo], [Start Date], [End Date] FROM [M00091 Partial 5 Claims]
UNION SELECT SSN, [Sent to Disbo], [Start Date], [End Date] FROM [M00091 Partial 6 Claims]
UNION SELECT SSN, [Sent to Disbo], [Start Date], [End Date] FROM [M00091 Partial 7 Claims]
UNION SELECT SSN, [Sent to Disbo], [Start Date], [End Date] FROM [M00091 Partial 8 Claims]
UNION SELECT SSN, [Sent to Disbo], [Start Date], [End Date] FROM [M00091 Partial 9 Claims])
WHERE (([Sent to Disbo]) = #12/15/2005#)
ORDER BY SSN;
neileg said:I know RuralGuy is valiantly trying to help you, but you're running into exactly the sort of proplem that stems from an un-normalised structure. You have one claim record in each of 40 tables when you should have 40 records in one table. I suspect your original table tried to use 40 columns. By getting the UNION query to work, this is simply a poor replication of what the design should be.
I know this sounds very negative, and I used to think normalisation was a load of rubbish, but it's not, it's the way that makes for a most efficient design.
I can't see any justification for having separate tables that are date specific. Perhaps I'm missing something? If you hold the claim records with a field for this date in one table, then you can group them by date, by their reference in the master table, or whatever. The separate table approach is like a spreadsheet not a relational database. You must have to add a table for each time period, whereas with one table, you just roll on ad infinitum.Bigmo2u said:Believe me I am open to critizism on my DB cause this is the largest project I have taken on and I am a beginner with this stuff.
I don't have 1 claim in 40 tables (or I don't see it that way). I have master table that holds the MBR's info (SSN, Lname, Fname, unit, city, state and remarks)
Then the other tables are for claims that are submitted for specific dates (if the MBR is activated for 4 years they submit a claim every month for 48 months) all individual calims need to be tracked. With in those tables it holds ie dates of the claim, when it was received, payment amounts and rejections. If you can find a way to minimize my tables please help me. At this point I can use all the help I can get.
Bigmo2u said:tbl_partial_1 thru tbl_partial_48
SSN
Claim received
MBR sig Date
Clerk Init recv
DN Date
Disbo DN Date
Partial Paid date
sent to disbo date
partial dov#
partial amount
partial complete
endorsement missing
missing signature
1351 incomplete
missing orders
missing appn
itinerary Endos conflict
missing receipts
endorsement incomplete
start date
end date
pre-val date
pre-val clerk
drop dead date
I don't see where the partials can be rolled into one table. All the data that is in the table is specific to 1 claim and not all 48 claims that they may be submit.
namliam said:Not to whine or anything but dabbling like this by (again no offence meant) amatures in access is what is giving us "profesional" developers a bad name.
I totaly agree with the Rural Mailman on this comment:
"You've totally missed the point there. Its not the data; its the fields. All the fields in your tables 1-48 are the same. Simply add another field for the 1-48 part and there you are. Seriously, if you don't get your tables right, the bigger your DB grows, the bigger the mess you will end up in."
I appologize up front if this post seems to be somewhat hurtfull or disrespectfull or anything. It is absolutly not meant that way, it is "just an observation"
Regards
The Mailman
namliam said:I totaly agree with the Rural Mailman on this comment:
"You've totally missed the point there. Its not the data; its the fields. All the fields in your tables 1-48 are the same. Simply add another field for the 1-48 part and there you are. Seriously, if you don't get your tables right, the bigger your DB grows, the bigger the mess you will end up in."
A poor workman blames his tools.
A poor manager believes him.
My appologies for the oversightreclusivemonkey said:That comment was made by me, not Rural Guy.
Slightly disagree... It is as it should be, but still ... One should not steel either and still that happens. We as profesionals get frowned upon a lot (lets be honest) and personaly I blaim the leags of amatures.reclusivemonkey said:I don't think that anyone would take a single person using Access as representative of all Access Users;
Totaly agree...reclusivemonkey said:
Agree whole hartedly, unfornatly in personal experience I must say there are more poor managers than there are good (let alone outstanding) managers out there.reclusivemonkey said:and as I say
A poor manager believes him.