My form is displaying the results of a search and the user has indicated that the data is wrong and typed the new stuff in another field. I try to update based on the old information:
and the compiled SQL looks like
I have no joins. I continue to get the “must use an updateable query” message.
Can anyone help?
Alan
Code:
upSQ = "UPDATE dbo_DMPlatform SET "
upSQ = upSQ & " dbo_DMPlatform.Program = " & Chr(34) & Me.txt[COLOR=#A40000]DM[/color]prog.Value & Chr(34) & ","
upSQ = upSQ & " dbo_DMPlatform.SubProgram = " & Chr(34) & Me.txt[COLOR=#A40000]DM[/color]sub.Value & Chr(34)
upSQ = upSQ & " WHERE (((dbo_DMPlatform.Program)=" & Chr(34) & Me.txt[b]MR[/b]prog.Value & Chr(34) & ") AND "
upSQ = upSQ & " ((dbo_DMPlatform.SubProgram)=" & Chr(34) & Me.txt[b]MR[/b]sub.Value & Chr(34) & ") AND "
upSQ = upSQ & " ((dbo_DMPlatform.PART)=" & Chr(34) & Me.txtPartSearch.Value & Chr(34) & "));"
DoCmd.RunSQL upSQ
Code:
UPDATE dbo_DMPlatform SET dbo_DMPlatform.Program = "blue 747", dbo_DMPlatform.SubProgram = "slu sub" WHERE (((dbo_DMPlatform.Program)="added 747") AND ((dbo_DMPlatform.SubProgram)="sub2") AND ((dbo_DMPlatform.PART)="114S1822-999"));
Can anyone help?
Alan