Qwert0000
Technical User
- Oct 24, 2003
- 30
Howdy,
I have a DB with 3 Main tables all linked by a SSN field. Table 1 contains "contact info" records on everyone. Table 2 has a 1 to 1 relationship with table 1 containg records only on "students". Table 3 has a 1 to many relationship containing "attendance data" on all of the students.
What I am tring to do is assign a locked textbox that shows the accumalated sum of training days for a record on my training data form. I have a sum caculated in a querry, but if I add that information to my form query the record doesnt show up in my form until I add at least 1 attendance record for that student.
I current add a blank record in the attendance table for that SSN when a new student is added, but that seems kind of ugly to me.
I would like to use an IIF statement or some vb code that basicly checks my grouped by SSN attendance query for a Days Completed record on the current SSN and returns that value to the form. IF no record is found place 0 in the txt box.
The other problem I seem to have is along the same lines. I cant seem to figure out how to call for an item from another table to be place in a report/Form.
I have created a table with information for headers and such that occasionally changes. Instead of hard codeing a label in the form/report. I would like to use this table to populate header info. I point to the Table.Field for the control source but get #name in my form. This table has 1 record with a several fields for different header information.
Thanks for any help you can give this newb!
I have a DB with 3 Main tables all linked by a SSN field. Table 1 contains "contact info" records on everyone. Table 2 has a 1 to 1 relationship with table 1 containg records only on "students". Table 3 has a 1 to many relationship containing "attendance data" on all of the students.
What I am tring to do is assign a locked textbox that shows the accumalated sum of training days for a record on my training data form. I have a sum caculated in a querry, but if I add that information to my form query the record doesnt show up in my form until I add at least 1 attendance record for that student.
I current add a blank record in the attendance table for that SSN when a new student is added, but that seems kind of ugly to me.
I would like to use an IIF statement or some vb code that basicly checks my grouped by SSN attendance query for a Days Completed record on the current SSN and returns that value to the form. IF no record is found place 0 in the txt box.
The other problem I seem to have is along the same lines. I cant seem to figure out how to call for an item from another table to be place in a report/Form.
I have created a table with information for headers and such that occasionally changes. Instead of hard codeing a label in the form/report. I would like to use this table to populate header info. I point to the Table.Field for the control source but get #name in my form. This table has 1 record with a several fields for different header information.
Thanks for any help you can give this newb!