why i am getting the following error in VB6.0?
i took four command buttons and wrote following code for each.
Private Sub cmdadd_Click()
Data1.Recordset .AddNew
txtadd.SetFocus
End Sub
Private Sub cmdlast_Click()
Data1.Recordset .MoveLast
End Sub
Private Sub cmdnext_Click()
Data1.Recordset .MoveNext
End Sub
Private Sub cmdprevious_Click()
Data1.Recordset .MovePrevious
End Sub
Private Sub Command4_Click()
Data1.Recordset .MoveFirst
End Sub
But when i press each button i get error
"Compile errore
Invelide or unqualified reference"
can any one please help me what could be the reason .
(Its not homework as i gave my code.)