JBuckley2000
Vendor
Hello,
I am having a problem creating a module that will help my ticket database print tickets. On the current table, I have a list of every single part I need to print tickets for. For each part, I have a column for the stack quanty (stackqty) that is allowed on each pallet. I want the operator to be able to enter in a order quantity then the system will then print out the number of tickets that is needed according to the stack qty. I also want the data to be saved in another table so that we can report on how many tickets are printed each week.
Here is what I was thinking:
Clear the table
Get part number from operator
Get order qty from the operator
Get part data from the table (auto lookup once part number is entered)
Get stack qty from table
Tickets = roundup (quantity/stack qty)
For I=1 to tickets
Mytable.addnew
Mytable("Part" = Part Number
If I = Tickets and
Mytable("quantity" = stack qty or qty mod stack qty
Next I
Print Report
Append data to production history report
End sub
That is the idea I am using right now, but I am unsure about the right code to maybe use. What is hurting me the most is getting the idea of how to make the mod command work. JSF
Jason Facey
jfacey@lithonia.com
I am having a problem creating a module that will help my ticket database print tickets. On the current table, I have a list of every single part I need to print tickets for. For each part, I have a column for the stack quanty (stackqty) that is allowed on each pallet. I want the operator to be able to enter in a order quantity then the system will then print out the number of tickets that is needed according to the stack qty. I also want the data to be saved in another table so that we can report on how many tickets are printed each week.
Here is what I was thinking:
Clear the table
Get part number from operator
Get order qty from the operator
Get part data from the table (auto lookup once part number is entered)
Get stack qty from table
Tickets = roundup (quantity/stack qty)
For I=1 to tickets
Mytable.addnew
Mytable("Part" = Part Number
If I = Tickets and
Mytable("quantity" = stack qty or qty mod stack qty
Next I
Print Report
Append data to production history report
End sub
That is the idea I am using right now, but I am unsure about the right code to maybe use. What is hurting me the most is getting the idea of how to make the mod command work. JSF
Jason Facey
jfacey@lithonia.com