Hello,
I was wondering if someone might be able to help me. I’m a little stuck as to how to put the results of a query into a memo field.
I run a ski chalet company and I have a bookings database. In this I store all the emails that go back and forth with my guests, these are stored in a memo field.
I’m trying to make a system to template my emails for me. Ideally I’d like it to template and email that has a list of all the extras they’ve booked (ski lessons, ski hire etc), maybe something like:
Dear <GUEST NAME>
Here is a list of all your ski lessons, hire and lift passes:
<guestextra>
<guestextra>
<guestextra>
Etc.
I’ve put a button on the form that stores this emails and when I click it the code to do the above will hopefully run!
I can get the first bit working to put the guestname in at the start (as for that it only has to look up one value), then put it all into the memo field along with the “here is a list of your ski lessons....” etc. I have the query running fine that selects all the guest extras for that particular guest. I don’t know how to get the results of that query to go as text into the memo field as well.
I’m using access 2007 on a vista computer. I am doing this in VBA, though I’m only a beginner at such things.
If anyone has any ideas I’d be very grateful to hear about them. Even just directions to research as I’ve been searching for ages but I’m not sure really what I’m looking for.
Many thanks for your help,
Phil Teare.
I was wondering if someone might be able to help me. I’m a little stuck as to how to put the results of a query into a memo field.
I run a ski chalet company and I have a bookings database. In this I store all the emails that go back and forth with my guests, these are stored in a memo field.
I’m trying to make a system to template my emails for me. Ideally I’d like it to template and email that has a list of all the extras they’ve booked (ski lessons, ski hire etc), maybe something like:
Dear <GUEST NAME>
Here is a list of all your ski lessons, hire and lift passes:
<guestextra>
<guestextra>
<guestextra>
Etc.
I’ve put a button on the form that stores this emails and when I click it the code to do the above will hopefully run!
I can get the first bit working to put the guestname in at the start (as for that it only has to look up one value), then put it all into the memo field along with the “here is a list of your ski lessons....” etc. I have the query running fine that selects all the guest extras for that particular guest. I don’t know how to get the results of that query to go as text into the memo field as well.
I’m using access 2007 on a vista computer. I am doing this in VBA, though I’m only a beginner at such things.
If anyone has any ideas I’d be very grateful to hear about them. Even just directions to research as I’ve been searching for ages but I’m not sure really what I’m looking for.
Many thanks for your help,
Phil Teare.
Comment