Hello Jeff -
The form is bound to t_accounting and has several unbound fields to
process
the calculations.
The DLookup calculation is in field named AmtCalc, which is unbound
Combo52 is a dropdown with control source of ChCrID, which is a bound
field
to t_accounting - this selects the type of discount to be applied by
specifying the ChCrID to use in the DLookup
The event on Combo52 is On Change, and directs the focus to the AmtCalc
field
The formula in the AmtCalc is as follows:
=(DLookUp(" [ChCrAmt]","t_ChargesCredits","[ChCr_ID]= " &
[ChCrID]))+(DLookUp(" [CourseFee]","t_Courses","[Course_ID]= " &
[CourseID]))*(DLookUp(" [ChCrperc]","t_ChargesCredits","[ChCr_ID]= " &
[ChCrID]))*-1
The OnFocus event for AmtCalc is to SetValue of Amt (which is bound to
t_accounting table) equal to the calculated amount in AmtCalc
On this form, the events are all Macros.
I notice that in the macro window, some lines have a yellow triangle icon
saying "This action will not be allowed if the dabase is not trusted"
In the Trust Centre, my trusted location is
C:\Program Files\Microsoft Office\Office12\ACCWIZ\
All macros are enabled.
Thanks for your help!
sandra
Jeff Boyce said:
How are you telling Access to do the re-calculation?
Are the fields involved bound or unbound.
Is the form bound or unbound?
More info, please...
Regards
Jeff Boyce
Microsoft Office/Access MVP
Hello -
I have a DLookup that only calculates when I view the form in design
mode,
then go back to form mode.
This database is built and saved in Access 2003 and is being viewed by
some
users via Access 2007. The issue is only with the Access 2007 users.
Any help greatly appreciated.
many thanks
sandra