Hi all, wonder if you can help out with the code to update table data.
I have a table with multipule columns, what I have to do is go through each Field row by row edit the data based on the value inside. I have a rough idea of pieces of code that I have to use to achieve this, I just do not know how to piece them toghether.
I have no clue what I am doing, this is my attempt at trying to figure this out.
Dim db As DAO.Database
Dim rstCat As ADOB.Recordset 'Make Field in tableDevice
Set db = CurrentDb
rstCat.Open "Select [Make] FROM tblDevice"
Do Until rstCat.EOF
If rstCat Like "*" & "DELL" & "*" Then
rstCat="DELL"
Else If
rstCat Like "*" & "IBM "*" Then
rstCat = "IBM"
End If
Loop
End Sub
I have a table with multipule columns, what I have to do is go through each Field row by row edit the data based on the value inside. I have a rough idea of pieces of code that I have to use to achieve this, I just do not know how to piece them toghether.
I have no clue what I am doing, this is my attempt at trying to figure this out.
Dim db As DAO.Database
Dim rstCat As ADOB.Recordset 'Make Field in tableDevice
Set db = CurrentDb
rstCat.Open "Select [Make] FROM tblDevice"
Do Until rstCat.EOF
If rstCat Like "*" & "DELL" & "*" Then
rstCat="DELL"
Else If
rstCat Like "*" & "IBM "*" Then
rstCat = "IBM"
End If
Loop
End Sub