Tables into Forms

twychopen22

Registered User.
Local time
Today, 08:12
Joined
Jul 31, 2006
Messages
101
I have 3 tables Metrics, FixedExpenses, Variable Expenses, I want them all to have a date in a form, and a subform for all the records to be added. I want to be able to do this without having 3 seperate date tables linked to the other three tables. I am not sure how to do this correctly. (I want to be able to see all the records for a certain day in these forms.)
 
You can base your forms on a query that pulls together those three tables.

In fact, it's almost always preferable to use a query instead of table for form's recordsource.

As for relationship, have all three tables relate to Date table with DateID as foreign key in each of table.
 
see, I think I have tried that but it I couldn't get it to work. I had a Date table with a autoID as the key. When I would try to add a record in one it would say that I needed a record in a related table or something similar (I can't remember) I will try it again and let you know (I think I will try it on a seperate db and post it)
 
Sounds like it's working just fine.

Access's message saying "a related record is required in..." is just telling you that you didn't fill in all required fields.

It is up to you to ensure that your users fill in all required fields before moving on to other records, and use a custom messagebox to warn your users they didn't fill in the needed fields.

HTH.
 
Here it is, It is not working but I am not sure what I am doing wrong. I have relationships made and forms made but they don't show anything.
 

Attachments

I'll have a look later in the day when I have Access in front of me.
 
I had an idea and I know u said u would look at it later but what do u think about this...Have 1 form (the date) with 3 tabs. On each tab control have a subform with the three tables? Will this work?
 
Yeah, that will work very nicely. Let Access do all the dirty work of linking for you.
 
this is my latest update on the db. On Forms I have the DateQueryForm and it is the "MainForm" in the forms page. It has the date as the form and the 3 tables as the subforms. The only problem is that I want it to have the main forms dates to be the subforms dates automatically. Don't really know what I am doing wrong.
 

Attachments

Last edited:
twychopen22 - a general principle I have learned, and you are still grapping with because you are still a beginner, is that you must work towards this idea... Your computer is an incredible resource that can do your work for you if only you can organize your thoughts well enough to tell it how to do so.

Part of the process of getting from here to there is to take Julius Caesar's approach: Divide and conquer. Break the problem down into components. If you find that you still don't understand a component, break it down some more. You must always shoot for the goal of breaking a problem into parts, each of which you can easily do without hesitation.

Part of the process of being good with computers is this type of analysis. As a case in point: Your idea that you could use a main form with tabbed subforms to assure that certain items retained their linkages is an example of breaking out parts of a problem. In this case, the part you were breaking out had to do with date issues on multiple parent-child relationships.

So whether this works eventually or you have to take yet another point of attack, it is the right idea conceptually to attack the problem this way.

Having said that, I regret I am limited in the amount of time I can spend on this because my local project work is getting hotter and heavier lately. I'll check back from time to time on several threads but I can only do limited coaching for a while.
 
Doc Man, I sorta understand what you are saying. I am trying to break it down into as small of problems as I can. I am searching frantically on how to finish the things remaining for this database I have to do. Part of the problem is because I am a rookie at access, I don't know the lowest level things can be broken down to. I really do appreciate everybodies help! Thanks and I will keep researching.
 

Users who are viewing this thread

Back
Top Bottom