Hi,
I have a main form with a contact log subform in datasheet view (the subform is in datasheet view!). I have set the mechanism up correctly so that new logs can be added, and then displaying the last record, but that isn't my problem.
My problem is that I want to be able to output the details of the currently selected SUBFORM record to a report, but I am unsure how to do it.
In the table that contains the subform data, there are 4 fields, a date field for the date of the record, a message field, an ID number for the record (autonumber), and a reference code, which is linked with the main form. So obviously I want to be able to take the ID field data and stick it in a query. However, on the subform I have only put the date and message fields (as the ID and Reference fields aren't needed).
Does anyone know how to identify the content of the ID field in the table, even though it is not on the form?
I need to be able to click a button on the main form, and print the current record of the subform in datasheet view.
Thank you,
Nick
I have a main form with a contact log subform in datasheet view (the subform is in datasheet view!). I have set the mechanism up correctly so that new logs can be added, and then displaying the last record, but that isn't my problem.
My problem is that I want to be able to output the details of the currently selected SUBFORM record to a report, but I am unsure how to do it.
In the table that contains the subform data, there are 4 fields, a date field for the date of the record, a message field, an ID number for the record (autonumber), and a reference code, which is linked with the main form. So obviously I want to be able to take the ID field data and stick it in a query. However, on the subform I have only put the date and message fields (as the ID and Reference fields aren't needed).
Does anyone know how to identify the content of the ID field in the table, even though it is not on the form?
I need to be able to click a button on the main form, and print the current record of the subform in datasheet view.
Thank you,
Nick