sir,
i am developed a application in visual basic 6.0 but at last iam facing a problem when a user search data that display in all textboxes form ms access database.
but when he click on save button the old data (searched) also saved or when he enter the new data it gets saved any problem to this i have following code
Visual basic 6.0
do while not rs.eof
if rs.field(1).val ue=txtcustname. text then
msgbox " this is duplicate entry"
end if
exit sub
loop
but in this case if the entry is already present in database it hang in loop and application hangs up
i want quick solution plz send me solution as early as possible
thanks you
i am developed a application in visual basic 6.0 but at last iam facing a problem when a user search data that display in all textboxes form ms access database.
but when he click on save button the old data (searched) also saved or when he enter the new data it gets saved any problem to this i have following code
Visual basic 6.0
do while not rs.eof
if rs.field(1).val ue=txtcustname. text then
msgbox " this is duplicate entry"
end if
exit sub
loop
but in this case if the entry is already present in database it hang in loop and application hangs up
i want quick solution plz send me solution as early as possible
thanks you
Comment