Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default CreateObject Question

Can someone tell me why I am receiving an "Object Variable Not Set" error
when I get to the line that reads "TableObject.MoveFirst"
(By the way, this is an ACT! 6.0 database I am trying to connect to

Sub GetActData()

Dim objDatabase As Object
Set objDatabase = CreateObject("ACTOLE.DATABASE")
objDatabase.Open "C:\Documents and Settings\MyName\My
Documents\Raj\ibs.dbf"

Dim TableObject As Object
Set TableObject = objDatabase.Contact


TableObject.MoveFirst

Dim strOutput As String
strOutput = TableObject.Data(CF_LastName)

ThisWorkbook.Worksheets("Data").Range("A1") = strOutput

Set TableObject = Nothing
objDatabase.Close
Set objDatabase = Nothing
End Sub


Thank you



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Createobject (repost) keepITcool Excel Programming 0 July 14th 04 03:09 PM
CREATEOBJECT Using VB Karthik[_2_] Excel Programming 2 June 16th 04 09:08 PM
Difference between NEW and CREATEOBJECT? Mark[_36_] Excel Programming 3 February 19th 04 02:26 PM
Templates and CreateObject John Excel Programming 1 October 29th 03 01:07 PM
CreateObject produces error Robert Chapman Excel Programming 0 August 15th 03 03:48 PM


All times are GMT +1. The time now is 04:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"