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 rsInvoice As Recordset
Dim strSQL As String
Dim blnIsNew As Boolean
Dim intBillNo As Long
Set rsInvoice = New Recordset
strSQL = "SELECT * FROM Invoice WHERE ..."
rsInvoice.Open strSQL, cnStr, , adLockOptimistic
If blnIsNew Then rsInvoice.AddNew
With rsInvoice
.Fields(0) = ...
.Fields(1) = ...
.Update
If blnIsNew Then intBillNo = .Fields("BillNo")
.Close
End With