Jeff said:
You start by describing these six tables to us. We should be able to
see how they relate, if the design is sane....
Here goes, I am going to try my best to explain what I am trying to do.
I will start off with three tables, once I get the concept of three I
know I can do four or more tables then.
Table1: Date, UserName, etc.
Table2: Date, Exercise, Sets, Notes, etc.
Table3: Date, Food, Type, Servings, etc.
Table1 will only have your standard fields from textboxes.
Table2 will have all the exercises performed on that date, everything
will be displayed in a listview. That could mean as much as 20 or more
rows of information in the listview.
Table3 will be similar to Table2, but it will just be nutrition for
that particular date thats selected.
So I have to connect Table1 date and UserName to the same date and
username in Table2 and Table3. I am assuming that my Unique key will
be the date. You can add more information for that specific day if
needed.
Did I explain it clearly enough? I have looked at some programs that
do exactly what I am trying to do, I had to download and install to
make sure.
To be honest, I think my confusion is in pulling the data to be
displayed. Lets say I select on the month calendar todays date.
12/10/2009
From Table1 I want to pull the information relation to that date and
display it in the fields on my form (simple enough).
On another part of my form, I also want the information from Table2
relating to that date to be displayed in a listview. Not simple for me
because its more than one row of information to be returned to fill the
listview.
Better thought, real example.
Table1:
12/8/2009, Steven Jones
12/9/2009, Steven Jones
Table2:
12/8/2009, Swimming, 4laps, good day
12/8/2009, Cardio, 30mins, tired
12/8/2009, Jog, 2laps, energy good
12/8/2009, Weights, 5sets, normal
12/9/2009, Yoga, 30mins, okay
Table3:
12/8/2009, Breakfast, Oatmeal, 2
12/8/2009, Break, Skake, 1
12/8/2009, Lunch, Full meal, 1
12/8/2009, Pre, carbs, 1
12/9/2009, Midday, Glucose, 2
Basically like what I put above. I can create the tables, I can create
the fields, I can pull the information from the field if its only one
row of information. If I have to pull the information from Table2 when
it references 12/8/2009, that is 4 rows of information to be pulled, I
don't know how to do more than one row.
--