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.
[blue]Dim appAccess As New Access.Application
Dim objRecordSet As DAO.Recordset
appAccess.OpenCurrentDatabase ("[i]YourPath\YourDb.mdb[/i]")
Set objRecordSet = appAccess.DBEngine(0)(0).OpenRecordset("[i]YourTable[/i]")
With objRecordSet
.AddNew
![i]YourField[/i] = "[i]Alpha Value[/i]" [green]' or variable name[/green]
![i]YourNumField[/i] = [i]12345[/i] [green]' or variable name[/green]
.Update
.Close
End With
Set objRecordSet = Nothing
appAccess.Quit
Set appAccess = Nothing[/blue]
[blue]:
:
.Addnew
:
[green]' fill your fields[/green]
:
[red]On Error Resume Next[/red]
.Update
[red]If Err.Number = 3022 Then
[green]' Duplicate key - ignore if that's what you want[/green]
Else
[green]' Some other error - better take some action[/green]
End If[/red]
.Close[/blue]