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.
Dim dbs as Database
Dim rst as RecordSet
Set dbs = CurrentDb
set rst = dbs.OpenRecordset("MyTable")
Dim rst2 as RecordSet
Set rst2 = dbs.OpenRecordset("MyTemporaryTable")
Do While rst2.RecordCount > 0
rst2.Delete
Loop
If rst.field1 = "SomethingIWantToFind" Then
rst2.AddNew 'this creates a new, blank record in your temporary table
rst2!field1 = rst.field1
rst2!field2 = rst.field2 '(and so on)
Dim fld as Field '(put this in the Declarations section)
For Each Field in rst.Fields
rst2.fld = rst.fld
'the field in the temporary table's new record will have the same info as in the old record's field.
Next
rst2.Update 'write the new record to the temporary table.
End If 'close out the If...Then block statement!