afzalw
01-25-2017, 03:47 PM
I have this code which is for creating a new record in a existing table.
I am looking for a code that would actually look for the record that has that particular Number (InventoryNumber) and write CHECK in the last column for that particular Record.
Basically, I want to keep track of all the Records that I have already gone through. I am going through these records in a form by clicking a button and this code will be in there with the entire code for the button.
Thanks
Dim InventoryNumber As String
InventoryNumber = Me.Text17
Set rstDatabase = CurrentDb
Set rstTable= _
rstDatabase.OpenRecordset("TableName", dbOpenDynaset)
With rstTable
.AddNew
!IMAGEID = InventoryNumber
!Station = Me.TextBoxChainage.Value
End With
I am looking for a code that would actually look for the record that has that particular Number (InventoryNumber) and write CHECK in the last column for that particular Record.
Basically, I want to keep track of all the Records that I have already gone through. I am going through these records in a form by clicking a button and this code will be in there with the entire code for the button.
Thanks
Dim InventoryNumber As String
InventoryNumber = Me.Text17
Set rstDatabase = CurrentDb
Set rstTable= _
rstDatabase.OpenRecordset("TableName", dbOpenDynaset)
With rstTable
.AddNew
!IMAGEID = InventoryNumber
!Station = Me.TextBoxChainage.Value
End With