smercer
Registered User.
- Local time
- Today, 23:33
- Joined
- Jun 14, 2004
- Messages
- 442
Hi All,
I have many problems with this sales form I have been creating, one is slow on old machines, two is more complex than any other project I have created, three although it works well overall, it still has errors (Have been working on it for 4 months).
This last feature (1, 2 and 3 buttons for storing customer purchases) I have put in, has made it even more complex (but more useful).
Sales form Currently
the sales form is based around Temp tables (the tables is always there but the data is moved to a completed sales table when I am finished with it) and a subform based on a query that looks up the record that matches the scanned book(via barcode) and a text box that links to the subform, so that it is easier to write code to the linked text box. Action queries then look at the text box and copy the related record from inventory to the temp table, delete the record in inventory for current sale and same again when the user presses "sell books". Miscellaneous books are a bit different, they need a append and update query to change the quantity and a delete query when quantity reaches zero.
There is a seperate table for customer number that stores such things like discounts user has given, if the user has opened the exchange form for a customer, if the customer is crediting books from what they are exchanging to there current purchases, the results from calculation of the credits from exchange etc and another form for each ISBN being sold. This is needed because I need to have it in a many to many relationship.
_____________________________________________
I have thought of a better way of doing this, but I also think there is always someone who has a better way of doing it.
New version I thought of:
I am thinking i might have 3 new fields in the inventory table so that there is one for each customer (so that I am storing customer purchases in the inventory table) so that when the sale is made the tick box for that book is made true(via update query). the sales form will then requery with results that only have the tick boxes set to true according to which customer the user has selected. I also think I will need to merge the customer table in with the Book inventory table, but the disadvantage is that the extra empty fields of 20,000 records would make the database bloat ware (meaning the database will get very big and slow down everything)
____________________________________________
1) should I leave the sales form as it already is or,
2) use the new idea.
What does everyone else say? If anyone has a better idea I would definitely like to hear it.
Thanks to all in advance
I have many problems with this sales form I have been creating, one is slow on old machines, two is more complex than any other project I have created, three although it works well overall, it still has errors (Have been working on it for 4 months).
This last feature (1, 2 and 3 buttons for storing customer purchases) I have put in, has made it even more complex (but more useful).
Sales form Currently
the sales form is based around Temp tables (the tables is always there but the data is moved to a completed sales table when I am finished with it) and a subform based on a query that looks up the record that matches the scanned book(via barcode) and a text box that links to the subform, so that it is easier to write code to the linked text box. Action queries then look at the text box and copy the related record from inventory to the temp table, delete the record in inventory for current sale and same again when the user presses "sell books". Miscellaneous books are a bit different, they need a append and update query to change the quantity and a delete query when quantity reaches zero.
There is a seperate table for customer number that stores such things like discounts user has given, if the user has opened the exchange form for a customer, if the customer is crediting books from what they are exchanging to there current purchases, the results from calculation of the credits from exchange etc and another form for each ISBN being sold. This is needed because I need to have it in a many to many relationship.
_____________________________________________
I have thought of a better way of doing this, but I also think there is always someone who has a better way of doing it.
New version I thought of:
I am thinking i might have 3 new fields in the inventory table so that there is one for each customer (so that I am storing customer purchases in the inventory table) so that when the sale is made the tick box for that book is made true(via update query). the sales form will then requery with results that only have the tick boxes set to true according to which customer the user has selected. I also think I will need to merge the customer table in with the Book inventory table, but the disadvantage is that the extra empty fields of 20,000 records would make the database bloat ware (meaning the database will get very big and slow down everything)
____________________________________________
1) should I leave the sales form as it already is or,
2) use the new idea.
What does everyone else say? If anyone has a better idea I would definitely like to hear it.
Thanks to all in advance