R
RedHeadedMonster via AccessMonster.com
I have the following code / SQL and Im getting an "Update Statement" error.
Anyone see what Im doing wrong?
If IsNull(Me.MPANumber) Then
Me.MPA = "N"
sqlUpdateParts = "Update PartsNew " & _
"Set PartsNew.MPA = 'N' " & _
"Where PartsNew.Partnumber = ' " & Me.PARTNUMBER & " '"
Else
Me.MPA = "Y"
sqlUpdateParts = "Update PartsNew " & _
"Set PartsNew.MPA = 'Y' " & _
"Where PartsNew.Partnumber = ' " & Me.PARTNUMBER & " '"
End If
Thanx
RHM
Anyone see what Im doing wrong?
If IsNull(Me.MPANumber) Then
Me.MPA = "N"
sqlUpdateParts = "Update PartsNew " & _
"Set PartsNew.MPA = 'N' " & _
"Where PartsNew.Partnumber = ' " & Me.PARTNUMBER & " '"
Else
Me.MPA = "Y"
sqlUpdateParts = "Update PartsNew " & _
"Set PartsNew.MPA = 'Y' " & _
"Where PartsNew.Partnumber = ' " & Me.PARTNUMBER & " '"
End If
Thanx
RHM