fungsi replace dari VB.
update pegawai set nama = '" & (Replace("asa'at", "'", "''")) & "'"
atau klu menggunakan textbox
update pegawai set nama = '" & (Replace(Text1, "'", "''")) & "'"
irwan wahyu <[EMAIL PROTECTED]> wrote:
Setelah dari input box konversi dengan fungsi Ini :
Public Function FixSqlString(cString As String) As String
Dim i As Integer, cbuff As String
Let i = InStr(1, cString, "'")
While i > 0
Let cbuff = cbuff & Mid(cString, 1, i) & "'"
Let cString = Mid(cString, i + 1, Len(cString))
Let i = InStr(1, cString, "'")
Wend
FixSqlString = cbuff & cString
End Function
--- In Programmer-VB@yahoogroups. , "gunartha.nyoman"com
<gunartha.nyoman@...> wrote:
>
> Dear Miliser VB.
>
> Haii...
> Saya mo tanya gimana caranya memasukkan data string seperti :
asa'at, mu'at ke tabel ms sql
>
> update pegawai set nama = 'asa'at'
> pasti muncul error
>
>
> Terima kasih atas bantuannya
>
> Sincerely yours,
> Nyoman Gunartha
>
Send instant messages to your online friends http://asia.messenger.yahoo.com
__._,_.___
Wahana Programmer Groups Links
<*> Untuk mengunjungi sponsor milis ini, klik link berikut:
http://wahanaprogrammer.net
<*> Untuk menghubungi owner milis ini, kirim email ke:
[EMAIL PROTECTED]
<*> Konsultasi pemrogramman bisa chat disini:
Yahoo! Messenger: wahanaprogrammer
SPONSORED LINKS
| Programmer | Indonesia | Basic programming language |
| Computer programming languages | Programming languages | Java programming language |
YAHOO! GROUPS LINKS
- Visit your group "Programmer-VB" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
