URGENT...HELP WITH DATABASE.........Please help!! 
Author Message
 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.



Wed, 18 Jun 1902 08:00:00 GMT  
 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.



Wed, 18 Jun 1902 08:00:00 GMT  
 URGENT...HELP WITH DATABASE.........Please help!!

I have never encountered this errormessage yet, but here are my tactics
of approaching an Access- Error:

- If the .MoveFirst- Method causes Problems, it often helps to  switch to
a different tzpe of recordset:
There are Recordsets that don't allow you to move backwards in a
recordset. Use something like Dynaset to avoid problems.

- Whenever I encounter Problems with a Database without changing code,
the security settings often changed and now cause problems.

- If you cannot quite make any sense of the errordescription, copy the
errornumber to the clipboard, visit the MS homepage and paste the
ErrorNumber into the Search- field. It usually comes up with a more
detailed description

Hope you can use this,

Elmar



Sat, 31 May 2003 18:53:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

2. Urgent Help Help Help please

3. Formula Error...URGENT, HELP HELP HELP... PLEASE

4. Accessing secured database problem urgent help nedded please?

5. NEWBIE, URGENT:Please Help : Importing TabDelim txt file into Access Database

6. Urgent! Please help...password protected database

7. URGENT HELP PLEASE PLEASE PLEASE???

8. Urgent help needed please help

9. URGENT help needed, please help

10. PLEASE HELP - MKS MKD etc - Urgent Help Required

11. PLEASE HELP PLEASE HELP PLEASE HELP

12. Urgent help needed please help

 

 
Powered by phpBB® Forum Software