Connecting Tech Pros Worldwide Help | Site Map

Retrieving procedure and form names

  #1  
Old July 10th, 2007, 04:25 PM
Chris L.
Guest
 
Posts: n/a
Hi, I'm trying to set up a generic mechanism that would allow the
following:

1: Run <this_procedure>
2: After that, run <this_review_procedure>
3: If it returns non-zero, open <this_form>

The idea is that the first procedure would have to update records.
After that, the review procedure would check if there are unupdated
records. If there are, a form would open to show the problem records,
for user review.

So I would need to store in a metadata table: the procedure name, the
review procedure name and the form name, for example:

"update_yesterday_sales",
"check_for_unupdated_sales",
"frmShow_unupdated_sales"

"update_repaired_parts",
"check_for_unrepaired_parts",
"frmShow_unrepaired_parts"

And I would have a generic process running thru the records of this
table and running all defined processes in sequence. At some point,
the idea is present the user with the processes list and let the user
choose (checkboxes I hope) which processes s/he wants to run.

My question: Is it possible to retrieve a form's name from a table and
show the form? Ditto for retrieving a procedure name and executing it?
Do you have any pointers and/or examples to show me?

Very thankful in advance
Regards,
Chris

  #2  
Old July 11th, 2007, 03:35 AM
Tom van Stiphout
Guest
 
Posts: n/a

re: Retrieving procedure and form names


On Tue, 10 Jul 2007 08:24:20 -0700, "Chris L." <diversos@uol.com.ar>
wrote:

"Eval" is your friend. Look it up in the Help file.

-Tom.


Quote:
>Hi, I'm trying to set up a generic mechanism that would allow the
>following:
>
>1: Run <this_procedure>
>2: After that, run <this_review_procedure>
>3: If it returns non-zero, open <this_form>
>
>The idea is that the first procedure would have to update records.
>After that, the review procedure would check if there are unupdated
>records. If there are, a form would open to show the problem records,
>for user review.
>
>So I would need to store in a metadata table: the procedure name, the
>review procedure name and the form name, for example:
>
>"update_yesterday_sales",
>"check_for_unupdated_sales",
>"frmShow_unupdated_sales"
>
>"update_repaired_parts",
>"check_for_unrepaired_parts",
>"frmShow_unrepaired_parts"
>
>And I would have a generic process running thru the records of this
>table and running all defined processes in sequence. At some point,
>the idea is present the user with the processes list and let the user
>choose (checkboxes I hope) which processes s/he wants to run.
>
>My question: Is it possible to retrieve a form's name from a table and
>show the form? Ditto for retrieving a procedure name and executing it?
>Do you have any pointers and/or examples to show me?
>
>Very thankful in advance
>Regards,
>Chris
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in Returning Recordset in ASP vinodkus@gmail.com answers 1 April 14th, 2007 07:05 PM
Problem in Returning Recordset in ASP vinodkus@gmail.com answers 1 April 12th, 2007 01:05 PM
VB FAQs (Interview Questions) lot lot shamirza answers 14 January 23rd, 2007 11:25 AM
Why must I use PrtDevMode Randy Harris answers 5 November 12th, 2005 04:11 PM