Hi

I am getting error:
Error Code: 80040E14
Message : There was ab errir oarsubg tge qyert, [Token line number, Token line offset,, token in error,,]
Minor Err.:25501
Source :Microsoft SQL Server 2000 Windows CE Edition

It is observed that this error occurs when in the following code txtName.Text value having and ' (Apostrophe) in it.

VB Code:
  1. Try
  2.             cmd.CommandText = "INSERT INTO  PPCClientDir(ClientID, Name) VALUES(?,?)"
  3.             cmd.Parameters.Add("@p1", intClientID)
  4.             cmd.Parameters.Add("@p2", txtName.Text)
  5.  
  6.             cmd.ExecuteNonQuery()
  7.  
  8.         Catch err As SqlCeException
  9.             ShowErrors(err)
  10.  
  11.         Catch err As Exception
  12.             MsgBox(err.Message, MsgBoxStyle.Critical)
  13.             Me.Close()
  14.         Finally
  15.             If ssceconn.State = ConnectionState.Open Then
  16.                 ssceconn.Close()
  17.             End If
  18.         End Try

Any idea?