Hi,
I’m using Access 2000.
I have various tables that contain the details, such as names and prices, of the different brands I stock.
For example I have a table called “Stihl Products” which contains the names and prices of that brands product. I have another table called “Husqvarna Products” containing the same information for that brand.
Here is what I would like to do on my orders form, but I currently can’t get my head around how to go about it:
I want to have a combo box with a drop down list with two options, “Stihl” & “Husqvarna”. When I come to place an order for a Stihl product I select “Stihl” from the list.
I then have another combo box underneath, which when pressed displays a drop down list of all the product codes for the Stihl products I stock.
This is the first problem:
I don’t know how to link the second combo box to react to the entry in the first. For example if I select Husqvarna in the first – how do I make the second combo box show/point to the Husqvarna codes in the “Husqvarna Products” table? Alternatively, if I selected Stihl in the first combo box, how do I make the second combo box show the Stihl Product codes?
Here’s the second problem:
After this has been done, and I have selected the correct product code (Lets say a Stihl “MS180 Chainsaw”) – I have a further two fields on my form which need to show the pricing information of that product, one is the “buying price” and the other is the “selling price” – is there any way of importing this data onto the form from the “Stihl Products” table? I was thinking of maybe a button underneath the combo boxes, which when pressed, retrieves the data from the Stihl "MS180 Chainsaw" entry in the “Stihl Products” table – but was unsure of the method of looking up this data.
Does anyone have an idea how I could do this? If anyone could point me in the right direction of what I should be doing so I can learn how to do it I would greatly appreciate it. Oh and by the way, the reason I need to display the information on the form itself is because it is linked to a series of reports, which automatically print out the data as a receipt.
Thank you for taking the time to read this.
I’m using Access 2000.
I have various tables that contain the details, such as names and prices, of the different brands I stock.
For example I have a table called “Stihl Products” which contains the names and prices of that brands product. I have another table called “Husqvarna Products” containing the same information for that brand.
Here is what I would like to do on my orders form, but I currently can’t get my head around how to go about it:
I want to have a combo box with a drop down list with two options, “Stihl” & “Husqvarna”. When I come to place an order for a Stihl product I select “Stihl” from the list.
I then have another combo box underneath, which when pressed displays a drop down list of all the product codes for the Stihl products I stock.
This is the first problem:
I don’t know how to link the second combo box to react to the entry in the first. For example if I select Husqvarna in the first – how do I make the second combo box show/point to the Husqvarna codes in the “Husqvarna Products” table? Alternatively, if I selected Stihl in the first combo box, how do I make the second combo box show the Stihl Product codes?
Here’s the second problem:
After this has been done, and I have selected the correct product code (Lets say a Stihl “MS180 Chainsaw”) – I have a further two fields on my form which need to show the pricing information of that product, one is the “buying price” and the other is the “selling price” – is there any way of importing this data onto the form from the “Stihl Products” table? I was thinking of maybe a button underneath the combo boxes, which when pressed, retrieves the data from the Stihl "MS180 Chainsaw" entry in the “Stihl Products” table – but was unsure of the method of looking up this data.
Does anyone have an idea how I could do this? If anyone could point me in the right direction of what I should be doing so I can learn how to do it I would greatly appreciate it. Oh and by the way, the reason I need to display the information on the form itself is because it is linked to a series of reports, which automatically print out the data as a receipt.
Thank you for taking the time to read this.