
URGENT...HELP WITH DATABASE.........Please help!!
I have an older program that I've been working on, with an extremely
simple ACCESS database, and all of a sudden, for no reason at all, I'm
getting a strange error when the application tries to access the
database. It uses the standard DATA control provided with VB5.
When the program gets to the following code, I get a complie
error.....
Private Sub cmdOK_Click()
Data1.Recordset.MoveFirst
Do While Not Data1.Recordset.EOF
get_stats
If lname = txtUserName And password = txtPassword Then
okay = True
Data1.Database.Close
Me.Hide
Exit Sub
End If
Data1.Recordset.MoveNext
Loop
okay = False
Data1.Database.Close
Me.Hide
Exit Sub
End Sub
When the program gets to the "Data1.Recordset.MoveFirst" I get the
following error:
>> " Function or interface marked as restricted, or
>> the function uses automation not supported
>> by Visual Basic "
Nothing in this section has changed, I even tried running some older
apps that I had written a while ago that use ACCESS databases, and I
get the same error.
Any ideas......I would really appreciate some help in this matter,
before I end up ripping out all my hair.
Thanks in advance for any help.