jaytots921
Forum Veteran
mga boss baka my makatulong skin dyan about sa pag insert ng data sa database using visual basic ano po bang problema dto sa code ko? lumalabas kasi is type mismatch
pag ng add ako dun s database ko sana mtulungan nyo ko mga lods
[CODE title="visual basic 6.0 access database"]If rec.State = 1 Then rec.Close
rec.Open "Insert into ClientTBL values('" + txtclient.Text + "','" + txtfirstname.Text + "','" + txtlastname.Text + "','" + txtage.Text + "','" + DTPicker1.Value + "','" + Option1.Value + "','" + Option2.Value + "','" + txtadd.Text + "','" + txtphone.Text + "','" + txtemail.Text + "','" + Image1.Picture + "')", con, 3, 2[/CODE]
pag ng add ako dun s database ko sana mtulungan nyo ko mga lods

[CODE title="visual basic 6.0 access database"]If rec.State = 1 Then rec.Close
rec.Open "Insert into ClientTBL values('" + txtclient.Text + "','" + txtfirstname.Text + "','" + txtlastname.Text + "','" + txtage.Text + "','" + DTPicker1.Value + "','" + Option1.Value + "','" + Option2.Value + "','" + txtadd.Text + "','" + txtphone.Text + "','" + txtemail.Text + "','" + Image1.Picture + "')", con, 3, 2[/CODE]


