A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

inputparameters property with complex stored proc



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2004, 03:01 PM
gabor
external usenet poster
 
Posts: n/a
Default inputparameters property with complex stored proc

Hello,

I have a stored proc with several inputparameters.
I created an Access project file with Access2003
I would like to use the output recordset of the stored proc in a subform.
I wrote code to collect the parameter values from a form. In code I specify the recordsource property of the subform as the stored proc name and the inputparameters property to the parameters.
As help describes I use the following syntax for the inputparameters property: @param1 char='aa', @param2 int=2...

Help says that if I want to use DEFAULT value for a parameter (which is defined in the stored proc), I can simply ommit that parameter from the forms' inputparameters property.
It is works until the stored proc is "simple", but sometimes Access passess NULL-s to SQL server for the missing parameters. (I checked this with profiler.)
I realized if Access is not allow the create an "Autoform" based on a stored proc, than the inputparameters property is not working properly for that stored proc.

Is it by design? )

Thank you for your help, Gábor


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.