run time error '6': overflow

sparc

Registered User.
Local time
Today, 08:28
Joined
Jul 29, 2013
Messages
18
Folowing code returned run time error '6': overflow

Dim MeDok As Recordset
Set MeDok = CurrentDb.OpenRecordset("SELECT * FROM Dokumenta WHERE " & _
"[dDok] = #" & Format(Me.[ddok], "yyyy-MM-dd") & "# ", dbOpenDynaset)

dDok is date field in table Dokumenta
me.ddok is date field in form

me access is access 2013

any help me
 
Looks okay offhand. Try disambiguating:

Dim MeDok As DAO.Recordset
 

Users who are viewing this thread

Back
Top Bottom