G
Guest
Hi all
I am a Coding newbie......hopefully I can do this...
I have some vb code (basically a few SQL queries) that currently is run based on a command button set up on a Form so it only runs for the records on that form. To automate things a little bit I'd like the user to be able to somehow tell this 'code' to i.e. loop and perform the query functions based on a begin and end parameter
I don't know how to ask the user for this info and once I get it I don't know how to set the loop around my queries so it still performs the function one record at a time
An example
Right now based on the ORDER the user is on, a button is pressed which performs some queries for that ORDER number
What I'd like - a form or something for user to be able to enter a Starting ORDER Num and Ending ORDER Num - press cmd button and the queries would run still for one ORDER at a time BUT loop through each order based on the user input
Can I do this
Thanks for help in advance
Shawna
I am a Coding newbie......hopefully I can do this...
I have some vb code (basically a few SQL queries) that currently is run based on a command button set up on a Form so it only runs for the records on that form. To automate things a little bit I'd like the user to be able to somehow tell this 'code' to i.e. loop and perform the query functions based on a begin and end parameter
I don't know how to ask the user for this info and once I get it I don't know how to set the loop around my queries so it still performs the function one record at a time
An example
Right now based on the ORDER the user is on, a button is pressed which performs some queries for that ORDER number
What I'd like - a form or something for user to be able to enter a Starting ORDER Num and Ending ORDER Num - press cmd button and the queries would run still for one ORDER at a time BUT loop through each order based on the user input
Can I do this
Thanks for help in advance
Shawna