Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21271

Compile error: Variable not defined

$
0
0
Hello =) my program is a inventory type. It has a 5 Forms, and 3 of those forms are main; the Main, Add and the Edit.
*Add Form is perfectly working fine for adding up data to the Listview.
It has a 3 Combo-boxes for cboSchool, cboDepartment, and cboStatus.
*Edit Form same with Add Form.

Problem: Everytime I click a Data from the Listview and press the command for Edit form - an Compile error: Variable not defined

I guess the Error is on the Edit form so here are the Codes for Edit Form
Code:

Private Sub Form_Activate()
FindRecordset "Select * From Finder Where Owner = '" & txtOwner & "';"
If Not FindRs.BOF = True Or FindRs.EOF = False Then
txtOwner.Text = FindRs.Fields("Owner")
txtIDNumber.Text = FindRs.Fields("IDNUmber")
cboStatus.Text = FindRs.Fields("Status")
cboSchool.Text = FindRs.Fields("School")
cboDepartment.Text = FindRs.Fields("Department")
txtAcquired.Text = FindRs.Fields("Acquired")
txtReleased.Text = FindRs.Fields("Released")
Else
End If
End Sub

Please help me. This is for my thesis guys :)

Viewing all articles
Browse latest Browse all 21271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>