LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 09: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, 02:48 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Please tell us how you made Access 2000 run on Linux.
 
Old 10-13-2003, 09: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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:55 AM.

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
Open Source Consulting | Domain Registration