G
gaber85
Hello, I am still new to the access world and having some trouble so I
thought I'd post my problem and see if someone can help me. I created a
printer cartridge database and would like to have the price of the cartridge
automatically calculated based on the cartridge I choose as well as the
quantity. I have a table named tblCartridges that contains all of the
different printer cartridge numbers along with the unit price of each. I
also have a table named tblTransactions. The form that is based off of the
tblTransactions is where the I can select the cartridge from a combo box, put
in the qty and have to manually enter the price. Do I need to create a
relationship between tblCartridges and tblTransaction in order to write a
piece of VBA code that will allow the unit price to be calculated based on
the cartridge and quantity I enter? If I do need to create a realation ship
how would I go about it? Also how would you write the VBA code that would
look at the combo box field and see what cartridge I chose, look at the
quantity that I entered and calculate if for you in the unit price field? Any
help is much appreciated. Thanks
thought I'd post my problem and see if someone can help me. I created a
printer cartridge database and would like to have the price of the cartridge
automatically calculated based on the cartridge I choose as well as the
quantity. I have a table named tblCartridges that contains all of the
different printer cartridge numbers along with the unit price of each. I
also have a table named tblTransactions. The form that is based off of the
tblTransactions is where the I can select the cartridge from a combo box, put
in the qty and have to manually enter the price. Do I need to create a
relationship between tblCartridges and tblTransaction in order to write a
piece of VBA code that will allow the unit price to be calculated based on
the cartridge and quantity I enter? If I do need to create a realation ship
how would I go about it? Also how would you write the VBA code that would
look at the combo box field and see what cartridge I chose, look at the
quantity that I entered and calculate if for you in the unit price field? Any
help is much appreciated. Thanks