PMFJI,
Using what Orange suggested, I would suggest getting a pencil and a tablet and manually go through the steps, writing them down as you go. This is called pseudo code. Then go through the steps you wrote down and refine them. And maybe a 3rd and 4th time.
Once you have the process working manually, start the coding. Each step in the pseudo code might (will) convert to many code lines.
An example would be
Pseudo code:
Code:
Open a recordset to get the stock on hand
The pseudo code would become:
Code:
Dim d as DAO.Datebase
Dim r as DAO.Recordset
Dim sSQL as string
Set d = Currentdb
sSQL = "SELECT blah, blah"
Set r = d.Openrecordset (sSQL)
<More lines of code>
So if your pseudo code on paper is 2 pages, the actual code might end up 8 pages.
I used this process and ended up with around 50 letter sized pages for one button click. The code keeps growing because I have to add validation; the data is not always clean.
Happy coding ...