Runtime Error '3077'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • isaace
    New Member
    • Jan 2012
    • 13

    Runtime Error '3077'

    I am trying to create a pop up list of all leads from a main form. upon selecting the record i would like to find, I receive a runtime error 3077 message; Syntax error in date in expression. can anyone help?!

    Code:
    Private Sub cmdShowActiveLeads_Click()
    
    Dim rs As DAO.Recordset
    Set rs = Forms!frmLeadMain1.RecordsetClone
    
    Call rs.FindFirst("Lead# =" & Me.Ctl1stLead.Value)
    Forms!frmLeadMain1.Recordset.Bookmark = rs.Bookmark
    Call DoCmd.Close(acForm, "frmFindActiveLead")
    
    
    End Sub
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Use [Lead#]. The pound sign is a reserved character to designate dates.

    Comment

    • isaace
      New Member
      • Jan 2012
      • 13

      #3
      Ahhh....it worked!!! Thank you!!

      Comment

      Working...