SELECT causing error - any idea why?

M

mscertified

I've been stuck on this for almost a full day, the following select generates
an error number zero.

Dim rs As New ADODB.Recordset
....
strSQL = "SELECT MIN(When) As MW FROM tblNotEmailed WHERE Agent = '" &
NTUserID & "'"
rs.Open strSQL, CurrentProject.Connection, adOpenForwardOnly, adLockReadOnly

'When' is a date/time column, is this the problem? The sql runs fine when I
run it as a query.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top