Access 2010 Drill Down From Another Form

I'm trying to drill down from one form to another form using the code below, however I get runtime error 3464 Data Type Mismatch in code  If DCount("*", "UFMS Weakness Remediation Summary", "[Projected RMFP Submission Date] In " & strList) = 0 Then. The data type is number and the table is a linked SharePoint list. Any thoughts...Thanks

Dim strList As String
 strList = "('" & Replace(Me.Projected_RMFP_Submission_Date, " ", "','") & "')"
 If DCount("*", "UFMS Weakness Remediation Summary", "[Projected RMFP Submission Date] In " & strList) = 0 Then
      MsgBox "No related record found", vbExclamation, "ATM"
      Exit Sub
 End If
 DoCmd.OpenForm "frm_Remediation Summary", , , "[Projected RMFP Submission Date] In " & strList
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
you are passing a parameter in the IN() clause that are string type to filter a Date/Time type field


Dim strList As String
 strList = "('" & Replace(Me.Projected_RMFP_Submission_Date, " ", "','") & "')"

strList=Replace(strList, "'", "#")

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You need both the comma and the #.  The list string should look like the following, including the parentheses

(#1/1/2015#, #2/4/2015#, #2/1/2014#)

Put a break in your code so you can examine the expresson after it has been concatenated.
shieldscoAuthor Commented:
Thanks ... Very Good
shieldscoAuthor Commented:
What happens if the value is null
Rey Obrero (Capricorn1)Commented:
test fierts the content of the control, before proceeding

if Me.Projected_RMFP_Submission_Date & "" <> "" then

  strList = "('" & Replace(Me.Projected_RMFP_Submission_Date, " ", "','") & "')"

 strList=Replace(strList, "'", "#")
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.