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 strSQL As String
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb()
If Me.GlobalCircuitID.Value <> Null Then
strSQL = "SELECT * From BillStreamUpload WHERE GlobalCircuitID = '" & Forms!provision.GlobalCircuitID.Value & "'"
MsgBox strSQL
Set rs = db.OpenRecordset(strSQL)
rs.MoveFirst
Forms!provision.BillStreamTab.Form.Recordset = rs
End If
Dim strSQL As String
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim i, rsCount As Integer
Set db = CurrentDb()
'populate the BillStreamTab with a recordset
If Not IsNull(Me.GlobalCircuitID.Value) Then
strSQL = "SELECT * From BillStreamUpload WHERE GlobalCircuitID = '" & Nz(Forms!provision.GlobalCircuitID.Value, "") & "'"
Set rs = db.OpenRecordset(strSQL, dbOpenDynaset)
rs.MoveLast
rsCount = rs.RecordCount
rs.MoveFirst
Set Forms!provision.BillStreamTab.Form.Recordset = rs
For i = 1 To rsCount
Forms!provision.BillStreamTab.Form!("Description" & i) = rs("description")
Forms!provision.BillStreamTab.Form!("Type" & i) = rs("ROTflag")
Forms!provision.BillStreamTab.Form!("CDflag" & i) = rs("CDflag")
Forms!provision.BillStreamTab.Form!("Amount" & i) = rs("amount")
rs.MoveNext
Next
End If