×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!
  • Students Click Here

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How do I pass form field into criteria of stored procedure

How do I pass form field into criteria of stored procedure

How do I pass form field into criteria of stored procedure

(OP)
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.

RE: How do I pass form field into criteria of stored procedure

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...

RE: How do I pass form field into criteria of stored procedure

(OP)

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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