Converting to ADP with SQL Server (1 Viewer)

mattP

Registered User.
Local time
Today, 12:34
Joined
Jun 21, 2004
Messages
87
I have attached a basic logon function, that I originally got from these forums.
I am trying to use this type of logon example for my new DB, that I am creating in ADP with a SQL backend.

I am experiencing problems trying to get the recordset function to work correctly, in particular in the initial logon form "frmLogon", when you enter your password, click "logon" and it compares the records etc..
The current code is as follows:
Dim db As DAO.Database
Dim rst As DAO.Recordset

Set db = CurrentDb()
Set rst = db.OpenRecordset("tblUserDetails", dbOpenDynaset)


However when I try to run this I get the following error on my ADP DB:

Run-time error '91':
Object variable or with block variable not set.


Would appreciate any help that can be offered.

MattP
 

Attachments

  • Logging On 2000.zip
    111 KB · Views: 124

RuralGuy

AWF VIP
Local time
Today, 05:34
Joined
Jul 2, 2005
Messages
13,825
Maybe you already know this but are you aware that it is not necessary to convert to ADP to have SQL Server as your BackEnd?
 

mattP

Registered User.
Local time
Today, 12:34
Joined
Jun 21, 2004
Messages
87
RuralGuy,

yes I know I can use the upsizing wizard to convert to a SQL backend, however I was advised that creating the Access part using ADP would be "Cleaner".

MattP
 

Users who are viewing this thread

Top Bottom