Lavenderchan
Technical User
Hi I was writing a code to depending on a task I add a few items to it and it worked fine now all I'm getting is the Error Message Block If without End If. some suggestions I've seen on the web said to count the if statements but I'm not sure if there is to be an equal number of end if's. Any help would be apprecatied.
Here is the code I have so far:
Private Sub cboTask_BeforeUpdate(Cancel As Integer)
If Me.cboTask = ("Annual Operating Budget & Rent Increase Request") Then
Me.Due_Date = Date + 30
If Me.cboTask = ("Annual Operating Budget & Rent Increase Request") Then
Me.Status = ("Active")
End If
If Me.cboTask = ("Annual Financial Statement Response") Then
Me.Due_Date = Date + 30
If Me.cboTask = ("Annual Financial Statement Response") Then
Me.Status = ("Active")
End If
If Me.cboTask = ("2530 New Role for Property") Then
Me.Due_Date = Date + 30
If Me.cboTask = ("2530 New Role for Property") Then
Me.Status = ("Active")
End If
If Me.cboTask = ("2530 Submission") Then
Me.Due_Date = Date + 30
If Me.cboTask = ("2530 Submission") Then
Me.Status = ("Active")
End If
If Me.cboTask = ("Addendum B MOR Form 9834") Then
Me.Due_Date = Date
If Me.cboTask = ("Addendum B MOR Form 9834") Then
Me.Status = ("No Response Required")
End If
If Me.cboTask = ("Affirmative Fair housing Marketing Plan") Then
Me.Due_Date = Date
If Me.cboTask = ("Affirmative Fair housing Marketing Plan") Then
Me.Status = ("No Response Required")
Me.Comments = ("Mail to Cincinnati")
End If
End If
Thanks,
Keri
Here is the code I have so far:
Private Sub cboTask_BeforeUpdate(Cancel As Integer)
If Me.cboTask = ("Annual Operating Budget & Rent Increase Request") Then
Me.Due_Date = Date + 30
If Me.cboTask = ("Annual Operating Budget & Rent Increase Request") Then
Me.Status = ("Active")
End If
If Me.cboTask = ("Annual Financial Statement Response") Then
Me.Due_Date = Date + 30
If Me.cboTask = ("Annual Financial Statement Response") Then
Me.Status = ("Active")
End If
If Me.cboTask = ("2530 New Role for Property") Then
Me.Due_Date = Date + 30
If Me.cboTask = ("2530 New Role for Property") Then
Me.Status = ("Active")
End If
If Me.cboTask = ("2530 Submission") Then
Me.Due_Date = Date + 30
If Me.cboTask = ("2530 Submission") Then
Me.Status = ("Active")
End If
If Me.cboTask = ("Addendum B MOR Form 9834") Then
Me.Due_Date = Date
If Me.cboTask = ("Addendum B MOR Form 9834") Then
Me.Status = ("No Response Required")
End If
If Me.cboTask = ("Affirmative Fair housing Marketing Plan") Then
Me.Due_Date = Date
If Me.cboTask = ("Affirmative Fair housing Marketing Plan") Then
Me.Status = ("No Response Required")
Me.Comments = ("Mail to Cincinnati")
End If
End If
Thanks,
Keri