Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Sep 2006
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Delete row (Access 2000)

    How can i delete a row in the table tblClinets where the CompanyName is missing ? I get a syntax error in the following comand :
    Dim StrSQL As String
    StrSQL = "DELETE TblClients.* FROM TblClients " & _
    "WHERE TblClients.CompanyName = """
    DoCmd.RunSQL StrSQL

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Delete row (Access 2000)

    Try

    ...
    "WHERE TblClients.CompanyName Is Null"
    ...

  3. #3
    2 Star Lounger
    Join Date
    Sep 2006
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Delete row (Access 2000)

    Thank you Hans, it works awesome !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •