Loading
Share Your Source Code or Article
Do you have source code, articles, tutorials, web links, and books to share? You can write your own content here. You can even have your own blog.
Submit now...
Submit now...
Sponsor
Receive Free Updates
Today's popular content
- How to Connect to a Database and Add/Update/Delete Record (61)
- Free Hotel Management System Manual (54)
- Payroll System (51)
- Hotel Reservation System (VB.NET) (51)
- Automated Voting System (50)
- Hotel Reservation System in MS Access (49)
- Visual Basic .NET 2008 Tutorial (45)
- Hotel Reservation System (44)
- My VB Program (42)
- A Simple Add, Edit, Delete, and Search using VB and MSAccess (41)
- 1 of 204
- ››
Random Post
- Grade Guesser Version 1.0 Using Switch Case Statement (2,511)
- Import Daily Orders From Magento (1,604)
- Format dates in a Gridview column (1,398)
- Home Security with Your Fingerprint (2,147)
- JAVA Program using Textfile. (5,673)
- How to Test CUP using memory with ProgressBar (1,322)
- Sales and Inventory System (773)
- Data Entered Duplication (3,313)
- LetterSearcher (2,956)
- Bookmark icon using prototype (1,689)
- 1 of 133
- ››
hi guys will u help me about looping statement in my thesis. I think it has an error because the code is not functioning will you help me to debug the error?
here's my code...
Private Sub cmdenter_Click()
Call Entry
Set DataGrid1.DataSource = rs
If lblscreen(0).Caption = "" Then
MsgBox "Enter your ID Number first.", vbCritical, "System Security"
Else
If Not rs.BOF Then
rs.MoveFirst
End If
Do Until rs.EOF = True
If lblscreen(0) <> rs!stud_id Then
Exit Do
Else
With studinfo2
.Show
.lblIDno = rs!stud_id
.lblname = rs!full_name
.lblage = rs!age
.Label6(0) = rs!gender
.Label7 = rs!address
.Label8 = rs!year_level
.Label9 = rs!course
.Label10 = rs!c_major
End With
Unload Me
Exit Do
End If
Loop
End If
End Sub
Public Sub Entry()
Set rs = New ADODB.Recordset
rs.Open "Select * from sa03_user_01 where stud_id like '" & LogMeIn.lblscreen(0).Caption & "'", cn, adOpenKeyset, adLockPessimistic
End Sub
Public Sub myCon()
Dim mDataSource As String
mDataSource = "database/kiosk.mdb"
Set cn = New ADODB.Connection
cn.CursorLocation = adUseClient
cn.CommandTimeout = 0
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & mDataSource & ";Persist Security Info=False"
Set rs = New ADODB.Recordset
End Sub
help me please..tnx,,godbless