r/databases • u/wwe9112 • Oct 11 '15
Access Database Advice
I am working on a class assignment. Basically we are a group programming a business application:
We are making a personal finance application, and I am working on the database in Access. I have a table for credentials which has the username password and ID. The next part is where I need advice and perhaps reference if you can. I need to have an expenses table of some degree. I was thinking about making various tables with a date column. I would have many of these (the date column is for an object in the actual application), there will be many expense tables(obviously) I was wondering how would I structure that? Would I make a table of just foreign keys and one of the foreign keys link back with the userID? How would you actually program that in VB? Would I reference the actual table of the expense(say savings) or would I reference the table of just foreign keys? Advise, tips?
Thanks.
View all comments
Show parent comment
1
u/wwe9112 Oct 11 '15
So each expense (this is only one small part of the application, but the rest can be based off of this since I will also have an income section of the application), anyway,
so each expense has their own data table for example: tblHousing : -> housingID auto num -> housingDate date/time -> amount currency -> userID num tblTransport -> housingID auto num -> housingDate date/time -> amount currency -> userID num tblExpense -> expenseID auto num -> housingID date/time -> userID currency
Like that? How would one program that in the application? How would that work? Would I reference(or whomever is on that job) the table to get the information they need like the amount or whatever. Would they just reference the tblExpense and the column that the ID is in for whatever expense they are then coding for?