Years ago, I came across a VBScript function called SQLBless. It should function in VB, although it may need a slight tweak or two. Here's a current version: http://www.watson-net.com/free/asp/s_sqlbless.asp -----Original Message----- From: thelist-bounces at lists.evolt.org On Behalf Of Burhan Khalid Hello Everyone: Relaying this for a friend: Is there a command in VB 6 to escape SQL queries before sending them to the database server? I'm looking for the VB equivalent of PHP's mysql_real_escape_string() Thanks for any help, Burhan