Using a stored procedure as record source of a form - does this wo

D

Dave

I am converting to an ADP and I am trying to replace a sql statement in a
form record source with a stored procedure. I added the parameter needed by
the stored procedure to the Input Parameters. Everytime the form opens I get
an error. It is not a problem with the stored procedure because it runs fine
from SQL Mgmt console or from a VB.Net application, so this has to be yet
another peculiarity of Access. Here are the values of each property
Record Source: sp_Get_Physician_Data
Input Parameters: @PhysicianName string = g_PhysicianName

The global variable g_PhysicianName is defined as I verified that while in
debug mode right before the DoCmd.OpenForm. I have alos tried hard coding a
value in place of the global variable.

Can anyone tell me if this is really supported and if so perhaps show a
working sample/snippet.
 

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