This piece of code picks up a value from a list box and writes it to myString (that works ok). I then want to use this value
to delete a corresponding value from my table called drawings. The last line in this code is failing? Thanks for any pointers.
Dim myString As String
Dim strSQL As String
myString = List8.Column(0)
MsgBox (myString)
DoCmd.RunSQL ("DELETE FROM drawings WHERE (((Autokey)='" & myString & "'));")
to delete a corresponding value from my table called drawings. The last line in this code is failing? Thanks for any pointers.
Dim myString As String
Dim strSQL As String
myString = List8.Column(0)
MsgBox (myString)
DoCmd.RunSQL ("DELETE FROM drawings WHERE (((Autokey)='" & myString & "'));")