| | |
how to delete records
![]() |
•
•
Join Date: Jun 2007
Posts: 166
Reputation:
Solved Threads: 9
•
•
•
•
hi, im using msaccess as database. can u plz tel me how to delete records using vb (it should serch nad delete)
tkx
Happy Programming
AV Manoharan
•
•
Join Date: Aug 2007
Posts: 10
Reputation:
Solved Threads: 0
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
private sub cmddelete_() adodc1.recordsource="select * from employee where id " & _ "'" & txtid.text & "'" adodc1.refresh dim a as integer a=adodc1.recordset.recordcount if a=1 then msgbox"id found ",,"id number match" with adodc1.recordset .delete .update end with msgbox"record deleted",,"employee deleted" exit sub end if msgbox"no id number match with ur request",,"no file found" end sub
im using access hope it will help you make sure properly link
put the code in the command button code for vb6.0
![]() |
Similar Threads
- Simple delete problems. (PHP)
- How to delete using checkboxes (PHP)
- delete a record and update the dataset (VB.NET)
- Unable to delete SQL records (MS SQL)
- need to update each records after record deleted (PHP)
- Querying database records (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: using datagrid control in vb6
- Next Thread: opening a pdf document??
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






