Results 1 to 5 of 5

Thread: Using ' for saving

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    113

    Using ' for saving

    When my address text field has an ' in it, when saving it, it gives me an error.
    How do i avoid this problem

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Are we talking files or DB's?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    113
    This is about the DBs. When Im inserting or updating with a text with the ', i get some error

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Do a replace before using the insert/update
    VB Code:
    1. .Update ...
    2.      .Fields!Test = Replace(Text1.Text, "'", "''")

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    113
    Thanx alot .Its working

Posting Permissions

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



Click Here to Expand Forum to Full Width