RE: RefreshLink error - 3078



Here is the coding that I'm using to call the RefreshLink method.
Declerations were left out; but I know this code works because if I point the
backend of a MDB file I don't get the error....

I only get the error when attempting to connect to an SQL Server DB table!?
Is it possible that the coding needs to be modified somewhat because I'm
trying to connect to SQL?

'********START CODE*********

If MsgBox("Is " & DBPath & " the correct file and location?", vbYesNo,
"Database PATH") = vbYes Then
newPath = ";DATABASE=" & DBPath
Else
GoTo Find_path:
End If
intNumTables = MyDB.TableDefs.Count
varReturn = SysCmd(acSysCmdInitMeter, "Attaching Tables", intNumTables)
For i = 0 To MyDB.TableDefs.Count - 1
Set MyTableDef = MyDB.TableDefs(i)
If MyTableDef.Connect <> "" Then
MyTableDef.Connect = newPath

'!!!This causes error when connect has a value!!!
'Error # 3078 (for Access 2000) # 3011 (for Access 97)
'error states can't find table
MyTableDef.RefreshLink

End If
varReturn = SysCmd(acSysCmdUpdateMeter, i + 1)
Next i
'*******END CODE*******

I appreciate any help you can give me!!

Thanks,
James R.
--
Knowledge is the first step towards success. Little knowledge creates big
ideas.


"James R." wrote:

Hi,

I'm in the process of converting an Access 97 backend to SQL Server 2005;
I've tried the SSMA for Access with no avail. So, now I've gone through the
painstaking of hand converting the table structure, constraints, keys, etc;
and even got the data over into SQL using a complex SSIS package.

Now, I'm ready to link the backend data. For now, I'm trying the simplest
approach just to get a working copy..so I'll be using a DSN. I've read about
DSN-less and will try it out in future testing sessions.

I've created the DSN and started the linking process and get an error stating:
"Error: 3011 - The Microsoft Jet database engine could not find the
object 'MyTableName'. Make sure the object exists and that you spell its name
and the path name correctly....See Chapter 10 - Troubleshooting, Item 4 for
assistance."

For arguments sake I also upgraded the project to Access 2000 and got
essentially the same error message; just with error # 3078 instead.

I've checked the DSN connection and got successful connection test. I've
double checked the table names in Access file (originally named
dbo_MyTableName...but, I renamed to MyTableName).

I've read countless articles and newsgroups, browsed forums and MS support,
all of which have not once addressed this.

I'm not sure if there is something I am just not seeing or what? I've been
working on this for about a week now (the whole project for about 5 months).

Anyone have any ideas? I'd appreciate any help that you can give me or point
me to! Please help!

Thanks,
James R.
--
Knowledge is the first step towards success. Little knowledge creates big
ideas.
.



Relevant Pages

  • cannot access website
    ... Nerve.com--this started a few weeks ago; I do not get the error message on ... Microsoft OLE DB Provider for ODBC Drivers Error '80040e4d' ... Not defined as a valid user of a trusted SQL Server connection. ... The DSN used to connect to the Commerce database is misconfigured to use ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: SQL Server 2005 Installation fails (SCC got warning)
    ... I got an error while install SQL Server 2005 ... >The SCCsuccess, ... >- SQL Server Edition Operating System Compatibility - warning ...
    (microsoft.public.sqlserver.setup)
  • SQL Server 2005: setup problem
    ... Could you help me please with installing SQL Servera 2005 Express ... SQLEXPR.EXE - Microsoft SQL Server 2005 Express Edition ... WMI Service Requirement (Success) ... Operating System Minimum Level Requirement ...
    (comp.databases.ms-sqlserver)
  • RE: Invalid authorization specification
    ... Does your application use a DSN to connect to SQL Server? ... DSN is setup correctly on the client machine. ... How to troubleshoot connectivity issues in SQL Server 2000 - ...
    (microsoft.public.sqlserver.connect)
  • Re: Programmatically create DSN usind SQL Server Authentication
    ... Not when you create the DSN programmatically. ... >Server using SQL Server Authentication. ... >is off-topic for my purpose because it only shows Windows authentication. ...
    (microsoft.public.sqlserver.odbc)

Loading