Skip to content

Instantly share code, notes, and snippets.

@vbcupu
Created February 12, 2021 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vbcupu/bb66347023572ca6e0200a826d352e9a to your computer and use it in GitHub Desktop.
Save vbcupu/bb66347023572ca6e0200a826d352e9a to your computer and use it in GitHub Desktop.
Private Sub cmdKirim_Click()
On Error Resume Next
TotalKirim = 0
iPost = 0
txtresult.Text = ""
Call openConnection(dbconn)
strSQL = "select * from V_KetersediaanKamarSIRSNew2020 order by KelasSIRS"
Call msubRecFO(rs, strSQL, dbconn)
statcovid = "0"
jmlruang = "0"
TotalKirim = rs.RecordCount
rs.MoveFirst
For i = 1 To rs.RecordCount
statKirim = False
Do While statKirim = False
statKirim = kirimSirs(rs.Fields("KelasSIRS").Value, rs.Fields("NamaRuangan").Value, rs.Fields("jmlruang").Value, rs.Fields("jmlkamar").Value, rs.Fields("terpakai").Value, rs.Fields("prepare").Value, rs.Fields("prepare_plan").Value, rs.Fields("covid").Value)
Loop
iPost = iPost + 1
If i = rs.RecordCount Then
rs.MoveNext
Else
Exit For
End If
Next i
Exit Sub
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment