Environment: Acc2k3 (SP2), SQL2000 MSDE (SQ4) and XP SP2
I have a simple table displayed on a subform. With 3 fields, one is derived from a combo and 2 text fields (currency) values, called PremiumRef, Claimed and Offered.
If I select a Premium for the PremiumRef combo (3 columns - a unique identifier, text for the user and a currency amount). The currency amount is for my premium is £465. I then enter £500 for Claimed and £100 for Offered.
In the AfterUpdate clauses for each prompt I have validation on each field, most of it calls various common routines (e.g Offered must be <= Claimed, etc).
The problem I have is that "Me.Claimed > Me.PremiumRef.Column(2)" is false.
MsgBox that tells me:
Me.Claimed = 500
Me.Offered = 100
Me.PremiumRef.Column(2) = 465
(Me.Claimed > Me.PremiumRef.Column(2)) = false
The last line is telling me that 500 > 465 is false!!
Given that the basic values are correct, it can not be an issue with "Me.Refresh", "Me.Requery", etc. as it is pointing to the correct record.
Any ideas where this is going wrong?
TIA
Marcus.
I have a simple table displayed on a subform. With 3 fields, one is derived from a combo and 2 text fields (currency) values, called PremiumRef, Claimed and Offered.
If I select a Premium for the PremiumRef combo (3 columns - a unique identifier, text for the user and a currency amount). The currency amount is for my premium is £465. I then enter £500 for Claimed and £100 for Offered.
In the AfterUpdate clauses for each prompt I have validation on each field, most of it calls various common routines (e.g Offered must be <= Claimed, etc).
The problem I have is that "Me.Claimed > Me.PremiumRef.Column(2)" is false.
MsgBox that tells me:
Me.Claimed = 500
Me.Offered = 100
Me.PremiumRef.Column(2) = 465
(Me.Claimed > Me.PremiumRef.Column(2)) = false
The last line is telling me that 500 > 465 is false!!
Given that the basic values are correct, it can not be an issue with "Me.Refresh", "Me.Requery", etc. as it is pointing to the correct record.
Any ideas where this is going wrong?
TIA
Marcus.