hfshultz
Posts: 17
|
| Posted: 07/28/2004, 7:09 AM |
|
OK, this sounds like a stupid problem and I hope what I'm doing wrong is obvious so here goes:
I have a page with three forms on it, one called "Tickets" , "TicketHistoryView", and "TicketHistoryAdd". I cannot for the life of me get an email even that fires AfterInsert on the TicketHistoryAdd form to read a value from the Tickets form. I'm trying to call the field using the variable Tickets.ClientID.value and I'm not receiving anything back so it's coming up blank. Here's my code:
If TicketHistoryAdd.VisibleClient.value = 1 then
With CreateObject("CDONTS.NewMail")
.From = CCDLookUp("Email", "Clients", "ClientID="&Session("UserID"), DBhddb)
.To = CCDLookUp("Email", "Clients", "ClientID="&Tickets.ClientID.value, DBhddb)
.Subject = "InQueue Message for Ticket #"&Tickets.TicketNumber.value
.Body = "Message from "&Session("UserLogin")&":<BR><BR>"&TicketHistoryAdd.Comment.value
.BodyFormat = 0
.MailFormat = 0
.Send
End With
End if
I think I'm probably just doing something wrong. If I have to, I'm going to have to put hidden textboxes in the TicketHistoryAdd form and have them pull the values I need but I'd rather not do that and have the extra overhead if possible.
Thanks,
Frank
|