I have programmed before in Clipper, used Case statement and found it a wonderful tool. Checked all the books at Barns & Noble on Access 2003 and VB could find no such tool available. Then in one of the answers to another question an individual had, saw it used. "Select Case", I do hope someone can tell me if it does exist for use in Access 2003. This is why. I have products to invoice for. Each product has six prices available, Price1, Price2, Price3, etc. The user can enter price code 1 thru 6. So I end up with the simple situation of If pricecode = 2, Qty * Price2 = costofitems. or If pricecode = 3, Qty * price3 = costofitems, etc. As you can see from this, a Select Case would be great, else I don't see an easy way to do this. Help with this would be appreciated.
My form is frmproducts and the price code control is txtpc, the six prices in the product file are curprice1,curprice2, curprice3, etc. The product is found easily with txtprodcode.
Price
Qty. Code Desc. Code Cost Ext. Cost
22 1234 coffee 2 _______ ________
I do hope this information is complete enough, else let me know right away.
If Select Case for Access does not exist, please help me with direction for achieving same sort of results.
Tom
My form is frmproducts and the price code control is txtpc, the six prices in the product file are curprice1,curprice2, curprice3, etc. The product is found easily with txtprodcode.
Price
Qty. Code Desc. Code Cost Ext. Cost
22 1234 coffee 2 _______ ________
I do hope this information is complete enough, else let me know right away.
If Select Case for Access does not exist, please help me with direction for achieving same sort of results.
Tom