I have created a table SLA with no primary key it has 5 columns with distances for headings and locations that fall within that distance from location x
Ten |
10-50 |
50-80 |
80-100 |
100 |
a1 |
b1 |
c1 |
d1 |
e1 |
a2 |
b2 |
c2 |
d2 |
e2 |
a3 |
b3 |
c3 |
d3 |
e3 |
a4 |
b4 |
c4 |
d4 |
e4 |
a5 |
b5 |
c5 |
d5 |
e5 |
a6 |
b6 |
c6 |
d6 |
d6 |
I have a form with a field date and time fault lodged that captures the current date and time eg: 2/14/2017 10:34:00 AM, i have a cascading drop down list to select a site based on region and site. As soon as you select a site i want the site to be matched to one of columns and
if Site x falls on column Ten then in another text field Resolution Time Frame add 2 hours to the time and display the new date and time
if Site x falls on column 10-50 then in another text field Resolution Time Frame add 4 hours to the time and display the new date and time
if Site x falls on column 50-80 then in another text field Resolution Time Frame add 8 hours to the time and display the new date and time
if Site x falls on column 8-100 then in another text field Resolution Time Frame add 2 days to the date and display the new date and time
if Site x falls on column 100 then in another text field Resolution Time Frame add 10 days to the time and display the new date and time
i could only come up with this and i am stuck
Code:
If (DLookup(Ten, SLA, "me.cboSite=Ten")) Then