Hi,
I've finally got a link working from one of my forms for logging calls to produce an email, so an operator can forward details of a call he's taken straight to the relevant contact without retyping. It all works fine, apart from the subject line.
Basically, I'm using something like:
OutlookSubject = ContactName & " from " & CustomerName & " called " & DateTime
Works fine, except CustomerName is a link to another table; on the form itself it's a combo box where you can choose an entry from the customer table. The contents of the combo box is actually just the record number of the relevant link of course, but the standard Access combo wizard created a query in the background to display the name.
Now I'm trying to do it myself in VBA for this button & failing miserably! Obviously the result I get is a subject like "Fred from 231 called 20/10/04 09:32"
Can someone just point me in the right direction? Do I have to create a variable (to all intents, a new field) that can have the link criteria applied & how do I do that link?
Any help much appreciated!
I've finally got a link working from one of my forms for logging calls to produce an email, so an operator can forward details of a call he's taken straight to the relevant contact without retyping. It all works fine, apart from the subject line.
Basically, I'm using something like:
OutlookSubject = ContactName & " from " & CustomerName & " called " & DateTime
Works fine, except CustomerName is a link to another table; on the form itself it's a combo box where you can choose an entry from the customer table. The contents of the combo box is actually just the record number of the relevant link of course, but the standard Access combo wizard created a query in the background to display the name.
Now I'm trying to do it myself in VBA for this button & failing miserably! Obviously the result I get is a subject like "Fred from 231 called 20/10/04 09:32"
Can someone just point me in the right direction? Do I have to create a variable (to all intents, a new field) that can have the link criteria applied & how do I do that link?
Any help much appreciated!