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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Design

Status
Not open for further replies.

kronar30

Programmer
Sep 8, 2004
74
US
I want to build a form that lists all records in the job table, with a check box in front of each line to be checked if user wants to delete this record? how do I set this up?
 
I would add a yes/no field to the table with a name such as DeleteThisRecord, include this in the form, and then on close of the form, run

Code:
CurrentDb.Execute "delete from tblJob where DeleteThisRecord = True;"
 
I would use a mulit-select list box to allow the users to select a record or records. Your code could then loop through the selected items in the list box building the correct WHERE clause for a delete query.

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top