A
Alan
Sorry but I dont understand what I am Missing here and have been searching
for the last 2 days
I have a simple query to create a record set.
SELECT tbl_Daily.* FROM tbl_Daily WHERE (((tbl_Daily.DateTime)=#11/8/2008
2:13:0#))
This syntax works fine and returns me 2 rows as expected
however when I try to use this from within a Form and substitute the date
for a value displayed within the form I get 0 rows returned ???
Dim dtDateTime As Date
Dim rstUpdateDailyData As Recordset
dtDateTime = Format(Me.DateTime, "dd/mm/yyyy hh:mm:ss")
Set rstUpdateDailyData = CurrentDb.OpenRecordset("SELECT tbl_Daily.* FROM
tbl_Daily WHERE (((tbl_Daily.DateTime)=#" & dtDateTime & "#))", dbOpenDynaset)
There must be a simple answer for the dim, but I cannot see it
Any Help would be most graefully appreciated
for the last 2 days
I have a simple query to create a record set.
SELECT tbl_Daily.* FROM tbl_Daily WHERE (((tbl_Daily.DateTime)=#11/8/2008
2:13:0#))
This syntax works fine and returns me 2 rows as expected
however when I try to use this from within a Form and substitute the date
for a value displayed within the form I get 0 rows returned ???
Dim dtDateTime As Date
Dim rstUpdateDailyData As Recordset
dtDateTime = Format(Me.DateTime, "dd/mm/yyyy hh:mm:ss")
Set rstUpdateDailyData = CurrentDb.OpenRecordset("SELECT tbl_Daily.* FROM
tbl_Daily WHERE (((tbl_Daily.DateTime)=#" & dtDateTime & "#))", dbOpenDynaset)
There must be a simple answer for the dim, but I cannot see it
Any Help would be most graefully appreciated