themastertaylor
Registered User.
- Local time
- Today, 11:47
- Joined
- Aug 8, 2007
- Messages
- 15
Sorry for loading so many questions into one post but i'm getting inundated with problems. I basically devised a system for work to log orders for materials from numerous suppliers. as i've used it i've improved it, then re-written it and now i'm halfway through creating the third version.
in my earlier systems i had an orders table with space for 6 items, in the form of category, item, quantity, unit, rate - category2, item2, quantity2, unit2, rate2 etc etc. however this was prohibitive in only having 6 items per order and also made queries to search for prices very complicated. as such i've adopted the northwind style order form with a sub form for the details and the generic aspects e.g. supplier, phone number etc in the main form. the problem i have now is that due to the number of items i have to order i'd grouped them by category , whereby the category was selcted and the afterupdate field generated the row source for item.
using the sub form method when i enter the second category it updates the item field and removes my selection in item 1 (well clears the display but the data remains in the orders table) i need to be able to flick through the orders and see what has been ordered etc so this isn't suitable. is it possible to categorise my items any other way bearing in mind that it will be in a sub form later on, i considered putting my items in different tables according to category however i'm unsure if this would be in keeping with a good structure for my database.
my second issue is with my query to look up telephone numbers. for example in my order form i input supplier a and site a - i hit a button and it runs a query searching for previous instances of this combination and returns the phone number used (some suppliers will have different numbers for different sites etc). the trouble is if i place an order with the same supplier for the same site more than once i get a mass of identicle phone numbers returned - is there a way to filter out identicle results?
finally with my old system i created a query to find orders relating to specific sites, in the results i got a one line response for every order. with the sub table system as described i now get a line for each item ordered. i.e. if order no. 003 had 12 items on it i'd now get 12 lines in the results relating to the same order - is there a way to make the results collapasable, whereby they expanded to show all the items if clicked etc.
in my earlier systems i had an orders table with space for 6 items, in the form of category, item, quantity, unit, rate - category2, item2, quantity2, unit2, rate2 etc etc. however this was prohibitive in only having 6 items per order and also made queries to search for prices very complicated. as such i've adopted the northwind style order form with a sub form for the details and the generic aspects e.g. supplier, phone number etc in the main form. the problem i have now is that due to the number of items i have to order i'd grouped them by category , whereby the category was selcted and the afterupdate field generated the row source for item.
using the sub form method when i enter the second category it updates the item field and removes my selection in item 1 (well clears the display but the data remains in the orders table) i need to be able to flick through the orders and see what has been ordered etc so this isn't suitable. is it possible to categorise my items any other way bearing in mind that it will be in a sub form later on, i considered putting my items in different tables according to category however i'm unsure if this would be in keeping with a good structure for my database.
my second issue is with my query to look up telephone numbers. for example in my order form i input supplier a and site a - i hit a button and it runs a query searching for previous instances of this combination and returns the phone number used (some suppliers will have different numbers for different sites etc). the trouble is if i place an order with the same supplier for the same site more than once i get a mass of identicle phone numbers returned - is there a way to filter out identicle results?
finally with my old system i created a query to find orders relating to specific sites, in the results i got a one line response for every order. with the sub table system as described i now get a line for each item ordered. i.e. if order no. 003 had 12 items on it i'd now get 12 lines in the results relating to the same order - is there a way to make the results collapasable, whereby they expanded to show all the items if clicked etc.