LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 10-12-2003, 10:58 PM   #1
Linh
Member
 
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)

================================

Code:
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.SetFocus
        Text_10.Text = counter
        With RecordSet_Customer
           .AddNew
             !Tenant_Number = "T-100-11-2-1999"
             !Unit_Number = "10000"
             !Last_Name = "Sacramento"
             !First_Name = "Jayson and John"
             RecordSet_Customer.Update
        End With
    Loop
    MsgBox "The loop made " & counter & " repetitions."

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

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

Original Poster
Rep: Reputation: 30
reply

Hi.

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.
 
  


Reply


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 10:03 AM
Access 2000 amadkow General 2 11-23-2004 05: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 11:47 AM
Windows 2000 and NT source code leaked closet geek General 38 03-06-2004 03:43 PM
Still no rw access to windows 2000 server patpawlowski Linux - Networking 6 02-21-2004 02:45 AM


All times are GMT -5. The time now is 06:09 PM.

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