Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Shared file keeps losing connection | Excel Discussion (Misc queries) | |||
Shared file keeps losing connection | Links and Linking in Excel | |||
always recheck data connection library for latest connection strin | Excel Discussion (Misc queries) | |||
How do I set up my ODBC Connection from AS/400 file in Excel 2003 | Excel Discussion (Misc queries) | |||
How do I drop an Open connection in Excel | Excel Programming |