Use a query.
the query applies the GMT to both time so both fields read as GMT.
Use that query as the basis of all date queries.
DateAdd("h",[OffsetGmt],[StartDate])
Thanks for this, I have looked up the DateAdd function and that definiteely seems to be the way but I cannot seem to get it to work.
My conversion table has various differing conversions dependant on the date. The full table is below.
How do i then convert whereby the query will look at where the current OrgUK date sits in this table and add or subtract as appropriate
[TABLE="width: 357"]
<colgroup><col width="108" style="width: 81pt; mso-width-source: userset; mso-width-alt: 3949;"> <col width="111" style="width: 83pt; mso-width-source: userset; mso-width-alt: 4059;" span="2"> <col width="147" style="width: 110pt; mso-width-source: userset; mso-width-alt: 5376;"> <tbody>[TR]
[TD="class: xl70, width: 108, bgcolor: silver"]
ParentOrgName[/TD]
[TD="class: xl70, width: 111, bgcolor: silver"]
Start Date[/TD]
[TD="class: xl70, width: 111, bgcolor: silver"]
End Date[/TD]
[TD="class: xl70, width: 147, bgcolor: silver"]
OffsetFromVerintGMT[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
01/01/2016 00:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
27/03/2016 01:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
00:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
27/03/2016 01:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
30/10/2016 02:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
+01:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
30/10/2016 02:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
26/03/2017 01:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
00:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
26/03/2017 01:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
29/10/2017 02:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
+01:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
29/10/2017 02:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
25/03/2018 01:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
00:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
25/03/2018 01:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
28/10/2018 02:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
+01:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
28/10/2018 02:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
31/03/2019 01:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
00:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
31/03/2019 01:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
27/10/2019 02:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
+01:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
01/01/2016 00:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
27/03/2016 01:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
00:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
27/03/2016 01:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
30/10/2016 02:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
+01:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
30/10/2016 02:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
26/03/2017 01:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
00:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
26/03/2017 01:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
29/10/2017 02:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
+01:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
29/10/2017 02:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
25/03/2018 01:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
00:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
25/03/2018 01:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
28/10/2018 02:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
+01:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
28/10/2018 02:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
31/03/2019 01:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
00:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org UK FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
31/03/2019 01:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
27/10/2019 02:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
+01:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
01/01/2016 00:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
13/03/2016 06:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-05:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
13/03/2016 06:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
06/11/2016 07:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-04:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
06/11/2016 07:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
12/03/2017 06:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-05:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
12/03/2017 06:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
05/11/2017 07:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-04:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
05/11/2017 07:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
11/03/2018 06:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-05:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
11/03/2018 06:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
04/11/2018 07:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-04:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
04/11/2018 07:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
10/03/2019 06:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-05:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
10/03/2019 06:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
03/11/2019 07:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-04:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
01/01/2016 00:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
13/03/2016 06:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-05:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
13/03/2016 06:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
06/11/2016 07:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-04:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
06/11/2016 07:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
12/03/2017 06:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-05:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
12/03/2017 06:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
05/11/2017 07:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-04:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
05/11/2017 07:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
11/03/2018 06:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-05:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
11/03/2018 06:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
04/11/2018 07:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-04:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
04/11/2018 07:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
10/03/2019 06:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-05:00[/TD]
[/TR]
[TR]
[TD="class: xl71, width: 108, bgcolor: transparent"]
Org USA FO[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
10/03/2019 06:00[/TD]
[TD="class: xl72, width: 111, bgcolor: transparent"]
03/11/2019 07:00[/TD]
[TD="class: xl71, width: 147, bgcolor: transparent"]
-04:00[/TD]
[/TR]
</tbody>[/TABLE]