Get rid of this part - you're conflicting with the rest of the code:
WHERE BIID = " & Me.ListInputBudget.Column(0)
And change this part:
strIDs = "WHERE ID In (" & Left(strIDs, Len(strIDs) - 1) & ")"
to this:
strIDs = "WHERE BIID In (" & Left(strIDs, Len(strIDs) - 1) & ")"
I Actually have the error 438 on
For Each varSelect In Me.ListInputBudget
Even with the modification you ask me to do
Thanks
I've done a modification to your code and now I have a new error msg (Syntax error (missing operator) in query expression 'BIID in ()' )
Dim strIDs As String
Dim strSQL As String
strSQL = "DELETE * FROM [W1_Budget Input]"
Dim I
For Each I In Me.ListInputBudget.ItemsSelected
strIDs = strIDs & Me.ListInputBudget.ItemData(I) & ","
Next
strIDs = "WHERE BIID In (" & Left(strIDs, Len(strIDs) - 1) & ")"
strSQL = strSQL & strIDs
CurrentDb.Execute strSQL, dbFailOnError
Last edited: