N
Noemi
Hi
I have the following code and it doesn't seem to work.
If anyone can please help.
stWhere = "([Keycode]=""" & stKeycode & """) And
([Description]=""" & stDescrip _
& """)"
On Error Resume Next
rs.MoveFirst
rs.FindFirst stWhere
If rs.NoMatch Then
rs.addnew
rs.fields(0) = stKeycode
rs.fields(1) = stBrandNo
rs.fields(2) = stDescrip
rs.fields(3) = stColour
rs.fields(4) = stCost
rs.fields(5) = stSell
rs.Update
End If
Thanks
I have the following code and it doesn't seem to work.
If anyone can please help.
stWhere = "([Keycode]=""" & stKeycode & """) And
([Description]=""" & stDescrip _
& """)"
On Error Resume Next
rs.MoveFirst
rs.FindFirst stWhere
If rs.NoMatch Then
rs.addnew
rs.fields(0) = stKeycode
rs.fields(1) = stBrandNo
rs.fields(2) = stDescrip
rs.fields(3) = stColour
rs.fields(4) = stCost
rs.fields(5) = stSell
rs.Update
End If
Thanks