The query would be simple... much like you can make in the query designer
Select *
from yourTable
where DateAdd("M",10, [StartTime]) <= Now()
I think you should open your query in code, without actually touching the form to see if your criteria are met.
Dim rs as DAO.Recordset ' ***
set rs = Currentdb.Openrecordset ("Over10Mins")
Do while not rs.eof
debug.print rs!YourColumnname
rs.movenext
loop
lol...
Code:Dim rs as DAO.Recordset ' *** set rs = Currentdb.Openrecordset ("Over10Mins") Do while not rs.eof debug.print rs!YourColumnname rs.movenext loop
If you get an error on this line, you need to go in the menu to Tools>References
Find an entry called "Microsoft DAO ...." check the box in front of it and click OK.
Sub TestingNamliamsCode
Dim rs as DAO.Recordset ' ***
set rs = Currentdb.Openrecordset ("Over10Mins")
Do while not rs.eof
debug.print rs!YourColumnname
rs.movenext
loop
end sub
I assumed where you put rs!YourColumnname I had to put in the name of the coloum in the DB
Sub TestingNamliamsCode
Dim rs as DAO.Recordset ' ***
set rs = Currentdb.Openrecordset ("Over10Mins")
Do while not rs.eof
debug.print rs!YourColumnname
rs.movenext
loop
end sub