Re: time in where clause -
07-23-2003
, 08:37 AM
hi scott
first and foremost thanx for replying.
well infact i did enclose the time value within pound sign (#).
though the backend is ms sql server, since it is linked (linked
tables) to the ms access database, if i am right, it will have the
general characteristics of ms access tables.
well i found the solution. use the TimeValue (which returns the time)
builtin function of ms access on both the column of the table
containing time value and also on the variable holding the time value
using the same example i had used to describe the problem
instead of the following query
select * from testtable where timefield = format(<string containing
time value>,"hh:ss:mm ampm")
it is
select * from testtable where TimeValue(timefield) = TimeValue(<string
containing time value>)
here timefield is the field or column containing time value in the
linked table and "<string containing time value>" is a string variable
containing the time value from the form and used in the where clause.
thanx and hope u find this useful. incase u get any other solution
please do let me know, i am always of learning and updating my
knowledge base.
take care and have a great day
regards
bala |