borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (How To Improve A Search)Next Topic (insert into MSAccess using recordset in VB) New Topic New Poll Post Reply
AndreaVB Forum : Database : Deleting a record from a database
Poster Message
noodledotcomdotph
Level: Trainee

Registered: 25-11-2005
Posts: 1

icon Deleting a record from a database

hi! i just new here! and i just want to ask how can i delete a record from a database? i using access for my database! pls help me! thanks!

25-11-2005 at 06:48 AM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1617
icon Re: Deleting a record from a database

There are at least two ways... one of which has the recordset variable, and you select "delete" from the list.

the other (easier in a way) is to do: "DELETE * FROM tablename WHERE conditions_for_deletion"

like: DELETE * FROM users WHERE username='doejohn'
or
DELETE * FROM users WHERE id=24

then it's using the connection_variable.execute (ex: adc.execute "DELETE ....")


____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

25-11-2005 at 08:35 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Database : Deleting a record from a database
Previous Topic (How To Improve A Search)Next Topic (insert into MSAccess using recordset in VB) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder