Hi,
I am exporting data displayed in an access form into a word docm, with limited success.
The form is based on a query bringing together information from a number of tables.
Once the form is displayed some additional data can be input (and saved to a Table) and then the form printed.
I also want to export some of the displayed data into a word doc.
The word .docm is set up using bookmarks and is macro enabled.
This export runs smoothly unless the data has been called from a combo box based table.
for example, when I use:
I see the following:
[IMGNOTHUMB]https://bytes.com/attachments/attachment/9430d1524711864/clip-word-export.png[/IMGNOTHUMB]
the form it comes from looks like:
[IMGNOTHUMB]https://bytes.com/attachments/attachment/9429d1524711864/clip-form.png[/IMGNOTHUMB]
So i have typed the date into the form directly
The storage information has been called into the form based on an ingredient that has its storage requirements selected from a table:
[IMGNOTHUMB]https://bytes.com/attachments/attachment/9428d1524711864/storage-requirements-table.png[/IMGNOTHUMB]
I am hoping that I need to tweak the syntax of the form fields line above in some way as i am not a VBA adept.
I have tried inserting .column(1) but this results in an empty field rather than the row id.
All thoughts welcome,
Rob.
I am exporting data displayed in an access form into a word docm, with limited success.
The form is based on a query bringing together information from a number of tables.
Once the form is displayed some additional data can be input (and saved to a Table) and then the form printed.
I also want to export some of the displayed data into a word doc.
The word .docm is set up using bookmarks and is macro enabled.
This export runs smoothly unless the data has been called from a combo box based table.
for example, when I use:
Code:
.FormFields("ExpiryDate").Result = Me.ExpiryDate
Code:
.FormFields("StorageRequirements").Result = Me.StorageRequirements
[IMGNOTHUMB]https://bytes.com/attachments/attachment/9430d1524711864/clip-word-export.png[/IMGNOTHUMB]
the form it comes from looks like:
[IMGNOTHUMB]https://bytes.com/attachments/attachment/9429d1524711864/clip-form.png[/IMGNOTHUMB]
So i have typed the date into the form directly
The storage information has been called into the form based on an ingredient that has its storage requirements selected from a table:
[IMGNOTHUMB]https://bytes.com/attachments/attachment/9428d1524711864/storage-requirements-table.png[/IMGNOTHUMB]
I am hoping that I need to tweak the syntax of the form fields line above in some way as i am not a VBA adept.
I have tried inserting .column(1) but this results in an empty field rather than the row id.
All thoughts welcome,
Rob.
Comment