Hi,
I am trying to call a destination email address from an instance of a class but keep getting the error message:
"Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class."
Line 456: Dim emailTo As String
Line 457: Dim vac As Vacancy
Line 458: vac = Vacancy.GetVacancy(_VacancyId, False)
Line 459: emailTo = vac.EmailTo
My code is as below, :
' Find the destination email address (calls GetVacancy here to get the emailTo field value)
Go to the complete details ...