This is probably something completely simple for most of you.. but i am having a mild issue and Google isn't helping me.
basically i'm using some VBA to update a SQL Express table.
strSQL1 = " UPDATE dbo.TblTapeWIP SET BOAT_KIND ='" & strBoat & "' WHERE ITEM_NUM = '" & strItemNum & "' "
Most of the time this works perfectly .. but on occasion a user enters a "BOAT_KIND" (stored as a variable "strBoat") with a ' in it ( exmaple: TRIMARAN 105' NIGEL ).
Having that extra ' in it is breaking the update statement.
There has to be a way to rearrange
BOAT_KIND ='" & strBoat & "'
so that the extra ' does not freak everything out.