Referncing stored proc from a form

D

Dave

I upsized an old Access database to an ADP project. I am using Access 2003
w/SQL Server 2000.

I am having difficulty trying to modify my forms to use the stored procs in
SQL Server.

For example, it appears that the ability to open a form to a specific record
will not work if the form's record source is a stored proc. For example, if
you create a command button, the wizard will walk you through the process of
having the click event open a form to a specific record. This works fine
under native Access DAO but if the record source of the opened form is now a
stored proc, it does not work (even if the proc takes the record id as an
input parameter.)

Can someone conform this is so and whether there is a work around?

Also, when I specify a stored proc with multiple input parameters as the
record source for a form, I am prompted in Access for each of the input
params each time the form opens (even though the params are optional and I
do not need to specify them when calling the proc from other apps).

Besides writting a new proc or coding each input param with a NULL value, is
there any work around for this?
 
C

Charles Wang [MSFT]

Hi Dave,
Per my research, it seems you encountered the same issue described in this
KB article:
Form or report that is bound to a stored procedure or a function does not
apply the WHERE condition
http://support.microsoft.com/kb/275089/en-us

Please first read the article to see if the solution is helpful. If you
have any other questions or concerns, please feel free to let me know.

Best regards,
Charles Wang
Microsoft Online Community Support
===========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: (e-mail address removed).
===========================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for
non-urgent issues where an initial response from the community
or a Microsoft Support Engineer within 1 business day is acceptable.
Please note that each follow up response may take approximately
2 business days as the support professional working with you may
need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by
contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
============================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top