B
Bandit
Hi,
Can anyone see why this code isn't working? It is
similiar to the code that I use to add a record without
any problem. Thanks,,,
'-- Grab the first column
strQuestion = Me!lstReturnedQuestions.Column
(0, varQuestionsReturned)
'-- Set the other variables
strJob = Forms![CI-MI Questions]![cboJobs]
strArea = Forms![CI-MI Questions]![cboArea]
strCategory = Forms![CI-MI Questions]!
[cboCategory]
sql = "Delete from qryBOM_CIMI where
(JobNumber = '" & strJob & "' AND QuestionID = '" &
strQuestion & "' AND Area = '" & strArea & "' AND Category
= '" & strCategory & "');"
DoCmd.RunSQL sql
Can anyone see why this code isn't working? It is
similiar to the code that I use to add a record without
any problem. Thanks,,,
'-- Grab the first column
strQuestion = Me!lstReturnedQuestions.Column
(0, varQuestionsReturned)
'-- Set the other variables
strJob = Forms![CI-MI Questions]![cboJobs]
strArea = Forms![CI-MI Questions]![cboArea]
strCategory = Forms![CI-MI Questions]!
[cboCategory]
sql = "Delete from qryBOM_CIMI where
(JobNumber = '" & strJob & "' AND QuestionID = '" &
strQuestion & "' AND Area = '" & strArea & "' AND Category
= '" & strCategory & "');"
DoCmd.RunSQL sql