Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...this web site is a 'Godsend' for me. If I have a programming problem that I'm unable to solve, I'll get a sensible reply in no time. It's really great!..."

Geography

Where in the world do Tek-Tips members come from?

How do I pass form field into criteria of stored procedure

toptech (Programmer)
9 May 12 16:41
HI All.

I am converting and MDB to ADP.

I have a stored procedure that I created with 2 fields.

PropID needs to have the value of a form field passed on to the criteria box.

My Stored procedure is as follows(Qry_Append_Requisitions_Remove):

ALTER PROCEDURE [RIOCANMAIN\jfeintuch].Qry_Append_Requisitions_Remove
AS SELECT      PropID, Del_Flg
FROM          dbo.Tbl_Doc_Requisition
WHERE      (Del_Flg = 1)


I will actually change this to a delete query once I understand how to pass the form field.

In my access form, I have the following:

 Dim stDocName As String

    stDocName = "Qry_Append_Requisitions_Remove"
    DoCmd.OpenStoredProcedure stDocName, acViewNormal, acEdit


how do I go about doing this?

I am very new to adp and frustrated.

Thanks,

Toptech

Top Tech Systems

If you help 3 people and each one of those help 3 other people and so on, imagine all the people being helped.

JoseMarques (Programmer)
9 May 12 23:18
You're going the wrong way!!!
For me if you are using a connection to a database, create and run queries from a vba code it's better and a faster way of working.
If you need help to create the queries go to the site and look for examples.
If you are trying to open an external Stored Procedure for example in an sql database you can have some problems. I tried to do that but it gave some errors of conection when using ADP project.
I think the error had to do with permissions.

I hope this helps you...
toptech (Programmer)
10 May 12 16:05

Hi Jose,

That is exactly what i did.

Thanks,

Jeff

Top Tech Systems

If you help 3 people and each one of those help 3 other people and so on, imagine all the people being helped.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close