Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete Underlying Record from Table Using Command Button 1

Status
Not open for further replies.

Ajwebb

MIS
Jul 31, 2003
153
GB
Not Sure if this is possible, but i have a form with a list box on it. The record source for the list box is from a table.

Is it possible to select one of the rows in my list box and then delete using a command button.

When i say delete the record in the list box, i mean to delete the underlying record in the table.

Thanks for any help

Anthony
 
Thanks Again Andy.

Works great, you're a star.

Have a good Weekend.

Anthony

:)
 
One more question,

If i want to add more where statements to the above, how would i go about doing it?

Thanks

Anthony
 
Just add an AND to it:
where [learning activity dataset].[learn_id]='" & Me!List3.Column(0) &"' AND [lastname]='Miller' AND ..."

;-)
ANdy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top