R
Robert Neville
My database has complex relationships between companies, contacts,
projects, and addresses. I have been exploring solutions that would
allow me to pick a record and cut & paste all data from the record;
its labels; and all related records. The idea stems from filtering a
report with many sub-reports and exporting it rtf format. I would
prefer to achieve this while in my database where I cut & paste data
for usage in an email or letter. Presently, my database has several
driving forms which have sub-forms that relate the data to driving
tables.
For example, the Company form has a address sub-form; contact sub-form
on one tab; project sub-form on one tab; task sub-form on one tab.
The forms perform as expected, yet it takes a long time to compile the
information and copy it to an email. I would like to create a memo
field on another tab that would consolidate all the information in
text format after pressing a command button. My ideas relate to
building an adhoc sql statement in code; based on the index field like
CompID; loop through the fields; use the print method to output data
to the memo field; then move to the next SQL relating the records to
other tables; and repeat the process until all data is output to the
memo field. I am still learning a lot and could use examples and
suggestions about a possible solution. Let me know if anyone could
lead me in the right direction.
projects, and addresses. I have been exploring solutions that would
allow me to pick a record and cut & paste all data from the record;
its labels; and all related records. The idea stems from filtering a
report with many sub-reports and exporting it rtf format. I would
prefer to achieve this while in my database where I cut & paste data
for usage in an email or letter. Presently, my database has several
driving forms which have sub-forms that relate the data to driving
tables.
For example, the Company form has a address sub-form; contact sub-form
on one tab; project sub-form on one tab; task sub-form on one tab.
The forms perform as expected, yet it takes a long time to compile the
information and copy it to an email. I would like to create a memo
field on another tab that would consolidate all the information in
text format after pressing a command button. My ideas relate to
building an adhoc sql statement in code; based on the index field like
CompID; loop through the fields; use the print method to output data
to the memo field; then move to the next SQL relating the records to
other tables; and repeat the process until all data is output to the
memo field. I am still learning a lot and could use examples and
suggestions about a possible solution. Let me know if anyone could
lead me in the right direction.