Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / SQL Server / ADP / February 2004

Tip: Looking for answers? Try searching our database.

connection using udl

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
J?rg Werner - 25 Feb 2004 12:15 GMT
I'm using ACC2000 and SQL Server 2000.
The main form uses three subforms. .
In the open event of the main form I set the current connection.

  CurrentProject.OpenConnection ConnectionString

After that I want to assign the recordsources for the subforms.

  frmSub1.Form.RecordSource = "sp_GetSomeData"

But it does't work. I always get the error message:
2101: the setting you entered isn't valid for this property

What's wrong?

Thanks

J?rg
Sylvain Lafontaine - 27 Feb 2004 05:41 GMT
There is numerous bug with Access 2000 ADP.  Upgrading to Acc2002 or 2003
will help you a lot.

From now, you can try adding the prefixe "dbo" as in: .RecordSource =
"dbo.sp_GetSomeData".  Trying with EXEC or call may also help:
.RecordSource = "EXEC dbo.sp_GetSomeData"

Also, you shouldn't prefixe the names of your stored procedures with "sp_" .
This prefixe is reserved for system stored procedures and cause SQL Serve to
change the way it compiles theses stored procedures.  Using it for your own
stored procedures can lead to some serious near-intractable bugs and a
diminution of performance.  See the BOL for more information.

S. L.

> I'm using ACC2000 and SQL Server 2000.
> The main form uses three subforms. .
[quoted text clipped - 14 lines]
>
> J?rg
alig?k - 28 Feb 2004 14:45 GMT
> I'm using ACC2000 and SQL Server 2000.
> The main form uses three subforms. .
[quoted text clipped - 14 lines]
>
> J?rg
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.