G
Guest
I am trying to write a select case for a certain time. I have in a table, 5
starting times, in which I have different factors to apply to the data based
on what time the data was collected. My problem is in I can get the time for
the data, but the select case blows by the time . Here is my code.
Option Explicit
dim BegHr as Date
dim FactorSet as String
BegHr = DFirst ([field],some table,id#=id# in some form)
Debug.Pring BegHr = 10:00:00 AM
select case BegHr
Case BegHr = #10:00:00 AM#
FactorSet = "Set1"
When I run the program, it blows right by the Case and doesn't set
FactorSet. Am I not using the correct Date/Time properties? Thanks.
Kou
starting times, in which I have different factors to apply to the data based
on what time the data was collected. My problem is in I can get the time for
the data, but the select case blows by the time . Here is my code.
Option Explicit
dim BegHr as Date
dim FactorSet as String
BegHr = DFirst ([field],some table,id#=id# in some form)
Debug.Pring BegHr = 10:00:00 AM
select case BegHr
Case BegHr = #10:00:00 AM#
FactorSet = "Set1"
When I run the program, it blows right by the Case and doesn't set
FactorSet. Am I not using the correct Date/Time properties? Thanks.
Kou