I'm a newbie at this, so bear with me...
Background:
I've got a table of patients (TblPtDemograph ics) with an associated form (FrmPtDemograph ics). The primary key is PtID.
Each PtID has a list of surgeries in TblKneeSxInfo, with a primary key of SxKneeID.
Right now, I have a list box (LbxKneeSx) set up in FrmPtDemographi cs that shows the surgeries for the particular patient; my bound column is 2 (SxKneeID).
I've figured out how to make buttons to edit selected and add records to TblKneeSxInfo. I'm trying to have a delete button to remove the selected record, but have run into some problems.
I have a delete query (qryDeleteKneeS xInfo), but when I set the query to run upon a button click, I'm asked to enter a parameter value. I don't know how to make it recognize the specific list box selection here.... Please help! Thanks!
Background:
I've got a table of patients (TblPtDemograph ics) with an associated form (FrmPtDemograph ics). The primary key is PtID.
Each PtID has a list of surgeries in TblKneeSxInfo, with a primary key of SxKneeID.
Right now, I have a list box (LbxKneeSx) set up in FrmPtDemographi cs that shows the surgeries for the particular patient; my bound column is 2 (SxKneeID).
I've figured out how to make buttons to edit selected and add records to TblKneeSxInfo. I'm trying to have a delete button to remove the selected record, but have run into some problems.
I have a delete query (qryDeleteKneeS xInfo), but when I set the query to run upon a button click, I'm asked to enter a parameter value. I don't know how to make it recognize the specific list box selection here.... Please help! Thanks!

Comment