Jump to content
Sign in to follow this  
ndsaid

Vb6:buat Button Utk Simpan Check Box Dlm Flexgrid

Recommended Posts

For I = 0 To MSFlexGrid1.Row Step 1
sql = "INSERT INTO Makmal1 "
sql = sql & "(kelas,peralatan,bilangan,pasti,pilih)"
sql = sql & " VALUES "
sql = sql & "('"
sql = sql & Combo1.Text & " ','"
sql = sql & MSFlexGrid1.TextMatrix(I + 1, 1) & " ','"
sql = sql & MSFlexGrid1.TextMatrix(I + 1, 2) & " ','"
sql = sql & MSFlexGrid1.TextMatrix(I + 1, 3) & "','"
sql = sql & MSFlexGrid1.TextMatrix(I + 1, 4) & "')"
Next I
Error : Data type mismatch in criteria expression. Saya hadapi masalah pada .TextMatrix .Pada database,data type utk "pilih "saya letak YES/NO. TextMatrix dan YES/NO tak matching. Patut saya gantikan .TextMatrix dgn apa?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...