A
AndyB
I have a field named Time1. I have had the database for about 1 year and
I want to add an additional field called
"Tour" based on a 24 hour clock there are three Tours
0700 by 1535
1535 by 2335
2335 by 0700
I count the events per Tour on a record using these Control values.
=Sum(Abs([time1]>=#11:35:00 PM# Or [time1]<#7:00:00 AM#))
=Sum(Abs([time1]>=#3:35:00 PM# And [time1]<#11:35:00 PM#))
=Sum(Abs([time1]>=#7:00:00 AM# And [time1]<#3:35:00 PM#))
I want to use VBA to set the new field on a form to indicate the tour
involved once Time1 is entered.
I am trying such basic things as Time1_AfterUpdate
me.time1=me.tour
just to send the time in and it is not working. So getting it to
work after a tour calculation is a few steps ahead.
Basically I am stuck
ANdy Benjamin
I want to add an additional field called
"Tour" based on a 24 hour clock there are three Tours
0700 by 1535
1535 by 2335
2335 by 0700
I count the events per Tour on a record using these Control values.
=Sum(Abs([time1]>=#11:35:00 PM# Or [time1]<#7:00:00 AM#))
=Sum(Abs([time1]>=#3:35:00 PM# And [time1]<#11:35:00 PM#))
=Sum(Abs([time1]>=#7:00:00 AM# And [time1]<#3:35:00 PM#))
I want to use VBA to set the new field on a form to indicate the tour
involved once Time1 is entered.
I am trying such basic things as Time1_AfterUpdate
me.time1=me.tour
just to send the time in and it is not working. So getting it to
work after a tour calculation is a few steps ahead.
Basically I am stuck
ANdy Benjamin