Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-12-2003, 09:58 PM   #1
Registered: Apr 2003
Posts: 178

Rep: Reputation: 30
error in Access 2000 code

Access 2000 form. When I clicked on the button, it gives me a run-time error 91

run-time error 91
Object variable or With block variable not set.

The statement below was highlighted

Set RecordSet_Customer = Dbs.OpenRecordset("Customer", dbOpenTable)


Private Sub Command15_Click()

    Dim Dbs As Database
    Dim RecordSet_Customer As Recordset

    Set RecordSet_Customer = Dbs.OpenRecordset("Customer", dbOpenTable)
    Set Dbs = CurrentDb
    Dim Tenant_Number_Temp As String
    Dim Unit_Number_Temp As String
    Dim Last_Name_Temp As String
    Dim First_Name_Temp As String
    Dim counter As Long
    Tenant_Number_Temp = "T-100-11-2-1999"
    Unit_Number_Temp = "1000"
    Last_Name_Temp = "Sacramento"
    First_Name_Temp = "Jayson and John"
    counter = 0
    Do While counter < 10
        counter = counter + 1
        Text_10.Text = counter
        With RecordSet_Customer
             !Tenant_Number = "T-100-11-2-1999"
             !Unit_Number = "10000"
             !Last_Name = "Sacramento"
             !First_Name = "Jayson and John"
        End With
    MsgBox "The loop made " & counter & " repetitions."

End Sub
Old 10-13-2003, 02:48 AM   #2
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 110Reputation: 110
Please tell us how you made Access 2000 run on Linux.
Old 10-13-2003, 09:42 AM   #3
Registered: Apr 2003
Posts: 178

Original Poster
Rep: Reputation: 30


You run Access in Linux by using WINE.
But right now, I am running Access in Windows.
Since this said programming forum and it did not specified which OS platform, I thought I give it a try.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS SQL 2000 access using C++ in linux gourav Linux - Software 51 08-14-2006 09:03 AM
Access 2000 amadkow General 2 11-23-2004 04:04 PM
can't log into squirrelmail. error code "You must be logged in to access this page." rioguia Linux - Software 3 11-02-2004 10:47 AM
Windows 2000 and NT source code leaked closet geek General 38 03-06-2004 02:43 PM
Still no rw access to windows 2000 server patpawlowski Linux - Networking 6 02-21-2004 01:45 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration