Build WHERE -> insert_fields() failed.

Dear experts,
i have a vb6 program with mysql database. i have this module to update the database. I have it up and running before but today whenever i run it, i encounter this [MySQL][ODBC5.1 Driver][mysqld-5.1.33-community]Build WHERE -> insert_fields() failed.

any ideas what might have caused this problem experts? thank you for the input.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MySQL with VB! A marriage made in hell. Please post the code that generates the sql, the schema of the db table, and if the sql statement is dynamic, please post the final sql statement sent to odbc_query.
SlythieAuthor Commented:
The code in VB is as follows:

Set ac = New ADODB.Connection
Set ar = New ADODB.Recordset
ac.Open "dsn=pptkis"

ar.Open "select * from asuransi where asuransi_no = '" & ListView1.ListItems(ListView1.SelectedItem.Index).Text & "'", ac, adOpenDynamic, adLockOptimistic
If Not ar.EOF Then
ar!asuransi_tki_name = Text5
end if

just a few days ago, this code was working just fine

in the table asuransi, it contains the following fields:
- asuransi_no [varchar(50)]
- asuransi_tki_name [varchar(50)]     <---- this is the field needs to be updated
- asuransi_cabang_kode [varchar(3)]

SlythieAuthor Commented:
nvm about this problem... I found out that it was my stupid mistakes, trying to update one field but there are some other "NOT NULL" fields and they require values.. thx for trying to help v2Media.. =)
Question PAQ'd, 125 points refunded, and stored in the solution database.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.