D
dhstein
I'm linking a text file to update a table. I search for a new ProductSKU and
if it is new, then I want to add a record and set the values from the text
file into the table.
This is the code I have
rsProducts.Seek "=", ![ProductSKU]
If rsProducts.NoMatch Then
MsgBox "This is a new item"
MsgBox ![ProductSKU]
With rsProducts
.AddNew
!ProductSKU = ![ProductSKU]
.Update
End With
The Msgbox displays the correct data from the text file, but I get a blank
record added to the table. Any ideas? Thanks.
if it is new, then I want to add a record and set the values from the text
file into the table.
This is the code I have
rsProducts.Seek "=", ![ProductSKU]
If rsProducts.NoMatch Then
MsgBox "This is a new item"
MsgBox ![ProductSKU]
With rsProducts
.AddNew
!ProductSKU = ![ProductSKU]
.Update
End With
The Msgbox displays the correct data from the text file, but I get a blank
record added to the table. Any ideas? Thanks.