RuralGuy AWF VIP Local time Today, 14:31 Joined Jul 2, 2005 Messages 13,819 Aug 25, 2007 #21 You would have needed to change the Column Count and Column Widths properties on the Format tab of the property sheet for the ComboBox.
You would have needed to change the Column Count and Column Widths properties on the Format tab of the property sheet for the ComboBox.
RuralGuy AWF VIP Local time Today, 14:31 Joined Jul 2, 2005 Messages 13,819 Aug 25, 2007 #22 In the AfterUpdate event of the Discount1 ComboBox put: Code: If Me.Discount1.Column(5) Then Me.AA = Me.A - (Me.A * Me.Discount1.Column(6)) Else Me.AA = Me.A - Me.Discount1.Column(6) End If Last edited: Aug 25, 2007
In the AfterUpdate event of the Discount1 ComboBox put: Code: If Me.Discount1.Column(5) Then Me.AA = Me.A - (Me.A * Me.Discount1.Column(6)) Else Me.AA = Me.A - Me.Discount1.Column(6) End If
M mattyj1990 Registered User. Local time Today, 21:31 Joined Aug 20, 2007 Messages 38 Aug 25, 2007 #23 Ok Rural Guy i have done that
RuralGuy AWF VIP Local time Today, 14:31 Joined Jul 2, 2005 Messages 13,819 Aug 25, 2007 #24 It should now do as you wanted. You may wish to disable the ComboBox until there is a valid value in the Me.A control but that is up to you.
It should now do as you wanted. You may wish to disable the ComboBox until there is a valid value in the Me.A control but that is up to you.
RuralGuy AWF VIP Local time Today, 14:31 Joined Jul 2, 2005 Messages 13,819 Aug 25, 2007 #25 I know it is late there; did you fall asleep?
M mattyj1990 Registered User. Local time Today, 21:31 Joined Aug 20, 2007 Messages 38 Aug 25, 2007 #26 Sorry rural Guy but is it possible to display the amount discounted in the field [TD]. And can i hide the columns in the combo box so that they are not visible
Sorry rural Guy but is it possible to display the amount discounted in the field [TD]. And can i hide the columns in the combo box so that they are not visible
M mattyj1990 Registered User. Local time Today, 21:31 Joined Aug 20, 2007 Messages 38 Aug 25, 2007 #27 No i didn't fall asleep i lost my Internet connection. P.S its 1.20am here
RuralGuy AWF VIP Local time Today, 14:31 Joined Jul 2, 2005 Messages 13,819 Aug 25, 2007 #28 Sorry. It happens here in the states as well. Is your form working?
M mattyj1990 Registered User. Local time Today, 21:31 Joined Aug 20, 2007 Messages 38 Aug 25, 2007 #29 Sorry rural Guy but is it possible to display the amount discounted in the field [TD]. then i will add it to the total tomorrow
Sorry rural Guy but is it possible to display the amount discounted in the field [TD]. then i will add it to the total tomorrow
RuralGuy AWF VIP Local time Today, 14:31 Joined Jul 2, 2005 Messages 13,819 Aug 25, 2007 #30 mattyj1990 said: Sorry rural Guy but is it possible to display the amount discounted in the field [TD]. And can i hide the columns in the combo box so that they are not visible Click to expand... Sure. Change your AfterUpdate event code to: Code: If Me.Discount1.Column(5) Then Me.AA = Me.A - (Me.A * Me.Discount1.Column(6)) Me.[TD] = (Me.A * Me.Discount1.Column(6)) * -1 Else Me.AA = Me.A - Me.Discount1.Column(6) Me.[TD] = Me.Discount1.Column(6) * -1 End If ...and hiding the columns in a ComboBox is simply setting the ColumnWidth to 0" for that column.
mattyj1990 said: Sorry rural Guy but is it possible to display the amount discounted in the field [TD]. And can i hide the columns in the combo box so that they are not visible Click to expand... Sure. Change your AfterUpdate event code to: Code: If Me.Discount1.Column(5) Then Me.AA = Me.A - (Me.A * Me.Discount1.Column(6)) Me.[TD] = (Me.A * Me.Discount1.Column(6)) * -1 Else Me.AA = Me.A - Me.Discount1.Column(6) Me.[TD] = Me.Discount1.Column(6) * -1 End If ...and hiding the columns in a ComboBox is simply setting the ColumnWidth to 0" for that column.
M mattyj1990 Registered User. Local time Today, 21:31 Joined Aug 20, 2007 Messages 38 Aug 25, 2007 #31 Thanks Rural Guy it works perfectly Matt
RuralGuy AWF VIP Local time Today, 14:31 Joined Jul 2, 2005 Messages 13,819 Aug 25, 2007 #32 GREAT! Now get some sleep.
M mattyj1990 Registered User. Local time Today, 21:31 Joined Aug 20, 2007 Messages 38 Aug 25, 2007 #33 I Will Thanks for your Help this problem has been bugging me for months i can now tell my boss that i can get it finished for the end of September
I Will Thanks for your Help this problem has been bugging me for months i can now tell my boss that i can get it finished for the end of September
RuralGuy AWF VIP Local time Today, 14:31 Joined Jul 2, 2005 Messages 13,819 Aug 25, 2007 #34 You're certainly welcome. Glad I could help. You're a quick learner.