error handling in VB6 + + ODBC + MySQL...(Help!!!!)
Expand Post »
hello there,
im doing a program of consolidate database. however, my scope is to do it automatically. so far, i have designed a timer and also codes to insert the data from excel file into MySQL database. then, my idea is whenever there is an error occured in a particular rows of data, the program will capture the rows that have error and put/paste it in one temporary excel files..then continue inserting other rows. does anyone have any idea how to do this. if possible can i have the source code of this. thanx in advance!!
this is part of my program to insert data into the database;
Row = 2
Col = 1
Do While oexcel.Cells(Row, Col) <> ""
Re: error handling in VB6 + + ODBC + MySQL...(Help!!!!)
Hi,
Thanx for ur quick reply. Anyway, the error that will possibly occured is type (format) or length of the data that to be inserted are not the same as been declared in the table in MySQL database.
Thanx.
' /* Otherwise, It's A Form That Has been passed... Grab It's Handle */
hwnd = hWndOrForm.hwnd
EndIf
checks to see if the variable is of type long. If it's about formatting, you can use the format$ function to reformat the data they posted (for example, a date in the wrong layout), or you could split apart the string and see if unauthorized characters (letters in a currency field) are found...
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.