dcollard23
Registered User.
- Local time
- Today, 17:49
- Joined
- Jun 15, 2009
- Messages
- 87
Hello,
If there a way to combine all of the dlookup formulas since I am wanting the underwriter, region and line to fill in based on the prefix of the policy number?
Right now I have them separate:
'I am wanting the lookup to find the underwriter by looking at the policy prefix field and based on the prefix of the policy number pull the underwriter that is listed for that prefix"
Me.Underwriter = DLookup("Underwriter", "tblPolicyPrefix", "[PolicyPrefix] = '" & Left(Me.Policy_Number, 3) & "'")
'I am wanting the lookup to find the region by looking at the policy prefix field and based on the prefix of the policy number pull the region that is listed for that prefix"
Me.region = DLookup("region", "tblPolicyPrefix", "[PolicyPrefix] = '" & Left(Me.Policy_Number, 3) & "'")
'I am wanting the lookup to find the line by looking at the policy prefix field and based on the prefix of the policy number pull the line that is listed for that prefix"
Me.line = DLookup("Line", "tblPolicyPrefix", "[PolicyPrefix] = '" & Left(Me.Policy_Number, 3) & "'")
Thanks
Elaine
If there a way to combine all of the dlookup formulas since I am wanting the underwriter, region and line to fill in based on the prefix of the policy number?
Right now I have them separate:
'I am wanting the lookup to find the underwriter by looking at the policy prefix field and based on the prefix of the policy number pull the underwriter that is listed for that prefix"
Me.Underwriter = DLookup("Underwriter", "tblPolicyPrefix", "[PolicyPrefix] = '" & Left(Me.Policy_Number, 3) & "'")
'I am wanting the lookup to find the region by looking at the policy prefix field and based on the prefix of the policy number pull the region that is listed for that prefix"
Me.region = DLookup("region", "tblPolicyPrefix", "[PolicyPrefix] = '" & Left(Me.Policy_Number, 3) & "'")
'I am wanting the lookup to find the line by looking at the policy prefix field and based on the prefix of the policy number pull the line that is listed for that prefix"
Me.line = DLookup("Line", "tblPolicyPrefix", "[PolicyPrefix] = '" & Left(Me.Policy_Number, 3) & "'")
Thanks
Elaine