pbuethe
Returning User
- Local time
- Today, 07:24
- Joined
- Apr 9, 2002
- Messages
- 210
I have a working form with two levels of subforms, based on my table structure. However, I would really like the form to match the layout of the paper form which is scanned to populate the tables but whose format is very different.
The table structure is as follows:
tblARVMaster
CaseID (PK)
FormID
tblARVDirty
CaseID
arvDate
PageSeq
ColumnNo
arvEvent
EventAns
Value1
Value2
CaseID is not unique in tblARVDirty. One CaseID may have many PageSeq, each PageSeq has up to 4 ColumnNo, each ColumnNo has 1-13 Events.
The screen needs to look like the paper, where each page has 4 columns or "stripes". The layout of each column includes the following :
Date
__/__/__
Viral Load Assay
_______
CD4 Count
#____ ___%
Visit Type
O HIV Specialist
O Other Visit
O Non-Visit Event
Adherence Rate
O Not Measured
O Measured, Not Quantified
O Quantified No Percent
O =
O > ___%
O <
Other Events
[ ] Expired
[ ] Incarcerated
[ ] Transfer
[ ] New Patient
Depending on what the value of arvEvent is, a different area of the form is populated. In general the labels such as Viral Load Assay, CD4 Count, Visit Type, etc., except for Other Events, correspond to arvEvent. Blanks such as # and % correspond to Value1 and Value2. Option groups (O) correspond to EventAns. Checkboxes ([ ]) also correspond to arvEvent.
Right now my query for each column selects all records in that column and the master-child links of the (continuous) subform take care of the caseID and PageSeq. I would like to take all rows with one CaseID, PageSeq, and ColumnNo and disseminate their events/answers/values on a single form (as opposed to continuous) as illustrated above.
I tried writing code to loop through the records, which I put in the subform Load event. But nothing showed in the subform. I have never written code to use recordsets before so I was not surprised when it didn't work. There also should be a Save button on the form to allow editing of the form and saving the changes back to the table.
I hope I have explained the situation sufficiently. Thanks for any help (and thanks for your patience in reading this post).
The table structure is as follows:
tblARVMaster
CaseID (PK)
FormID
tblARVDirty
CaseID
arvDate
PageSeq
ColumnNo
arvEvent
EventAns
Value1
Value2
CaseID is not unique in tblARVDirty. One CaseID may have many PageSeq, each PageSeq has up to 4 ColumnNo, each ColumnNo has 1-13 Events.
The screen needs to look like the paper, where each page has 4 columns or "stripes". The layout of each column includes the following :
Date
__/__/__
Viral Load Assay
_______
CD4 Count
#____ ___%
Visit Type
O HIV Specialist
O Other Visit
O Non-Visit Event
Adherence Rate
O Not Measured
O Measured, Not Quantified
O Quantified No Percent
O =
O > ___%
O <
Other Events
[ ] Expired
[ ] Incarcerated
[ ] Transfer
[ ] New Patient
Depending on what the value of arvEvent is, a different area of the form is populated. In general the labels such as Viral Load Assay, CD4 Count, Visit Type, etc., except for Other Events, correspond to arvEvent. Blanks such as # and % correspond to Value1 and Value2. Option groups (O) correspond to EventAns. Checkboxes ([ ]) also correspond to arvEvent.
Right now my query for each column selects all records in that column and the master-child links of the (continuous) subform take care of the caseID and PageSeq. I would like to take all rows with one CaseID, PageSeq, and ColumnNo and disseminate their events/answers/values on a single form (as opposed to continuous) as illustrated above.
I tried writing code to loop through the records, which I put in the subform Load event. But nothing showed in the subform. I have never written code to use recordsets before so I was not surprised when it didn't work. There also should be a Save button on the form to allow editing of the form and saving the changes back to the table.
I hope I have explained the situation sufficiently. Thanks for any help (and thanks for your patience in reading this post).