Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
' stupid example
Update tblWhatever SET fldMine = 'XYZ ' WHERE fldyours = '21'
Dim varX As Variant
varX = DLookup("[upccode]", "nextupc", "[upccode] > 1")
'add 1 to that # and write it back
Dim varY As Variant
varY = Val(varX) + 1
Update nextupc SET upccode = varY where upccode = varX
dim strSQL As String
With Currentdb.openrecordset("SELECT upccode FROM nextupc WHERE upccode > 1")
Do Until .EOF
.Edit
.Fields("upccode") = .Fields("upccode") + 1
.Update
Loop
End With