B
Bob Line
Hi the following code stops at (If Me.[Policy Holders Name] = "Surrey" Then)
when it should run on, if you take the first 2 lines of code out it works
fine so how do you join the 2 pieces of code together.
Any help would me appreciated.
Thanks Bob
Private Sub Combo229_AfterUpdate()
Me.[Policy Number] = [Combo229].Column(1)
Me.[InsuranceCompany] = [Combo229].Column(2)
If Me.[Policy Holders Name] = "Surrey" Then
Me.[CfAttnOf] = "C/O David"
Me.[CfAddress] = "Road"
Me.[CfAddress1] = "Lane"
Me.[CfCity] = "Ep"
Me.CfCounty = "Surr"
Me.CfPostalCode = "GP11"
Me.[ClaimCode].SetFocus
ElseIf Me.[Policy Holders Name] = "" Then
Me.[Employer].SetFocus
End If
End Sub
when it should run on, if you take the first 2 lines of code out it works
fine so how do you join the 2 pieces of code together.
Any help would me appreciated.
Thanks Bob
Private Sub Combo229_AfterUpdate()
Me.[Policy Number] = [Combo229].Column(1)
Me.[InsuranceCompany] = [Combo229].Column(2)
If Me.[Policy Holders Name] = "Surrey" Then
Me.[CfAttnOf] = "C/O David"
Me.[CfAddress] = "Road"
Me.[CfAddress1] = "Lane"
Me.[CfCity] = "Ep"
Me.CfCounty = "Surr"
Me.CfPostalCode = "GP11"
Me.[ClaimCode].SetFocus
ElseIf Me.[Policy Holders Name] = "" Then
Me.[Employer].SetFocus
End If
End Sub