asked on
Private Sub Form_Timer()
Dim Counter As Long
DoCmd.OpenForm "frmCompare_Results"
Me.Status.Caption = "Reading"
Screen.MousePointer = 11
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = CurrentProject.Connection
Set rs = New ADODB.Recordset
With rs
Set .ActiveConnection = cn
.CursorLocation = adUseClient
.Source = "tblNumber"
.Open
While Not .EOF
ProgressBarC.Visible = True
CurrentRecordID = .Fields("Number")
ProgressBarC.Width = (ProgressBarA.Width / .RecordCount) * .AbsolutePosition
Me.Repaint
.MoveNext
For lCounter = 1 To 107000: Next
Wend
End With
If rs.EOF Then
CurrentRecordID = ""
Me.Status.Caption = "Done"
End If
rs.Close
cn.Close
Set rs = Nothing
Set cn = Nothing
Screen.MousePointer = 0
End Sub
ASKER
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
TRUSTED BY
ASKER