I wanted to make this a short, to the point thread, but I don't really see a way to. So...here is my conundrum. We have an ERP system that is overall really good, but I have the power to read (Read only connection) data from it and display as I want, making it better.
We are a manufacturer, and I've recently deployed tablets connecting with wifi on the shop floor for the employees to enter their time through it. That interface is a module of our ERP and works well for it's intended purpose. But the overall scope of the module is lacking. I've talked with the developers, and they have taken my suggestions into account, and at some point in the future may employ some of my suggestions, but I'd rather not wait....
One of the things I want to be able to do is look up which jobs are next for a given department. This involves a form with two combo boxes; one for department, and one for number of returned records (1,3,5, etc.)
This query is more complex than I originally thought. There are 3 primary tables to consider; tblDept, tblOpCode, and tblOperation. Operation Codes (tblOpCode) are a child of the Department. tblOperation lists all of the Operations for any work order in our system. So, tblOperation will first have to be filtered to only the nearest work orders (based on a target date field). So, when a user selects a department from the combo box, we need to look up all the cooresponding OpCodes for that department, then query that filtered tblOperations table to find all instances of those OpCodes that aren't set to 100% complete (another field).
How would one go about doing this? I'm less concerned about it being easy on me the programmer, and more concerned about speed, as it will be over a wifi connection. Unfortunately, the ERP database is not MS SQL (sybase), so no stored procedures for me. It is ODBC compliant.
Possibly several queries tiered off each other? Maybe an initial Pass-thru query to limit the data brought over? I'd love to hear the experts chime in.
I feel like alot of times I go the hard way with VBA and variables when there may be a simpler solution. As I'm not an everyday user, I tend to forget things!
Thanks!
Gary
We are a manufacturer, and I've recently deployed tablets connecting with wifi on the shop floor for the employees to enter their time through it. That interface is a module of our ERP and works well for it's intended purpose. But the overall scope of the module is lacking. I've talked with the developers, and they have taken my suggestions into account, and at some point in the future may employ some of my suggestions, but I'd rather not wait....
One of the things I want to be able to do is look up which jobs are next for a given department. This involves a form with two combo boxes; one for department, and one for number of returned records (1,3,5, etc.)
This query is more complex than I originally thought. There are 3 primary tables to consider; tblDept, tblOpCode, and tblOperation. Operation Codes (tblOpCode) are a child of the Department. tblOperation lists all of the Operations for any work order in our system. So, tblOperation will first have to be filtered to only the nearest work orders (based on a target date field). So, when a user selects a department from the combo box, we need to look up all the cooresponding OpCodes for that department, then query that filtered tblOperations table to find all instances of those OpCodes that aren't set to 100% complete (another field).
How would one go about doing this? I'm less concerned about it being easy on me the programmer, and more concerned about speed, as it will be over a wifi connection. Unfortunately, the ERP database is not MS SQL (sybase), so no stored procedures for me. It is ODBC compliant.
Possibly several queries tiered off each other? Maybe an initial Pass-thru query to limit the data brought over? I'd love to hear the experts chime in.
I feel like alot of times I go the hard way with VBA and variables when there may be a simpler solution. As I'm not an everyday user, I tend to forget things!
Thanks!
Gary