PC Review


Reply
Thread Tools Rate Thread

Calculations not processing

 
 
Sandy
Guest
Posts: n/a
 
      30th Jun 2009

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


 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      30th Jun 2009

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

"Sandy" <(E-Mail Removed)> wrote in message
news:44DD8321-6B1A-49AB-A3E0-(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Sandy
Guest
Posts: n/a
 
      30th Jun 2009

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" wrote:

> 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
>
> "Sandy" <(E-Mail Removed)> wrote in message
> news:44DD8321-6B1A-49AB-A3E0-(E-Mail Removed)...
> > 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
> >
> >

>
>
>

 
Reply With Quote
 
Sandy
Guest
Posts: n/a
 
      30th Jun 2009

Just to clarify, the calculations all compute when I go from form to design
and back to form view.



"Sandy" wrote:

> 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" wrote:
>
> > 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
> >
> > "Sandy" <(E-Mail Removed)> wrote in message
> > news:44DD8321-6B1A-49AB-A3E0-(E-Mail Removed)...
> > > 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
> > >
> > >

> >
> >
> >

 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      30th Jun 2009

So, if that path that is trusted is NOT the location of the file you are
working on, Access won't trust the macros!

If you haven't done so already, open the Trust Center and add the location
(file path) where this particular Access application/db/file is located.

JOPO (just one person's opinion) -- I've created a folder under my C:\ that
holds ALL of my Access applications, then marked that folder ("+ all
subfolders") as trusted.

Good luck!

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Sandy" <(E-Mail Removed)> wrote in message
news:3FCECD91-3377-4EAC-A37D-(E-Mail Removed)...
> 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" wrote:
>
>> 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
>>
>> "Sandy" <(E-Mail Removed)> wrote in message
>> news:44DD8321-6B1A-49AB-A3E0-(E-Mail Removed)...
>> > 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
>> >
>> >

>>
>>
>>



 
Reply With Quote
 
Sandy
Guest
Posts: n/a
 
      1st Jul 2009

HI Jeff -

I added the folder to the the trusted locations but still no go on the issue.

I resolved the issue by adding a Run Command -> Refresh line to the macro.
I also asked the client to add the database location to the Trusted
Locations.

Thanks for your help, as always!
sandra



"Jeff Boyce" wrote:

> So, if that path that is trusted is NOT the location of the file you are
> working on, Access won't trust the macros!
>
> If you haven't done so already, open the Trust Center and add the location
> (file path) where this particular Access application/db/file is located.
>
> JOPO (just one person's opinion) -- I've created a folder under my C:\ that
> holds ALL of my Access applications, then marked that folder ("+ all
> subfolders") as trusted.
>
> Good luck!
>
> Regards
>
> Jeff Boyce
> Microsoft Office/Access MVP
>
> "Sandy" <(E-Mail Removed)> wrote in message
> news:3FCECD91-3377-4EAC-A37D-(E-Mail Removed)...
> > 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" wrote:
> >
> >> 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
> >>
> >> "Sandy" <(E-Mail Removed)> wrote in message
> >> news:44DD8321-6B1A-49AB-A3E0-(E-Mail Removed)...
> >> > 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
> >> >
> >> >
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      1st Jul 2009

Thanks for posting your solution. Someone, sometime, will be looking for
this answer and find yours!

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Sandy" <(E-Mail Removed)> wrote in message
news47875A8-2B50-4379-919E-(E-Mail Removed)...
> HI Jeff -
>
> I added the folder to the the trusted locations but still no go on the
> issue.
>
> I resolved the issue by adding a Run Command -> Refresh line to the macro.
> I also asked the client to add the database location to the Trusted
> Locations.
>
> Thanks for your help, as always!
> sandra
>
>
>
> "Jeff Boyce" wrote:
>
>> So, if that path that is trusted is NOT the location of the file you are
>> working on, Access won't trust the macros!
>>
>> If you haven't done so already, open the Trust Center and add the
>> location
>> (file path) where this particular Access application/db/file is located.
>>
>> JOPO (just one person's opinion) -- I've created a folder under my C:\
>> that
>> holds ALL of my Access applications, then marked that folder ("+ all
>> subfolders") as trusted.
>>
>> Good luck!
>>
>> Regards
>>
>> Jeff Boyce
>> Microsoft Office/Access MVP
>>
>> "Sandy" <(E-Mail Removed)> wrote in message
>> news:3FCECD91-3377-4EAC-A37D-(E-Mail Removed)...
>> > 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" wrote:
>> >
>> >> 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
>> >>
>> >> "Sandy" <(E-Mail Removed)> wrote in message
>> >> news:44DD8321-6B1A-49AB-A3E0-(E-Mail Removed)...
>> >> > 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
>> >> >
>> >> >
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Button During Processing & Re-Enable After Processing? Donald A. Fisher Microsoft VB .NET 4 15th Dec 2007 05:08 AM
XML Processing and c# Tarun Mistry Microsoft C# .NET 6 3rd Dec 2005 09:04 AM
Processing Log? Nobody Special Windows XP Help 3 7th Aug 2005 05:58 AM
VBA Textrange Processing: Need help in processing multiple ranges david.f.jenkins@usa.net Microsoft Powerpoint 9 10th May 2005 12:43 AM
Perfoming calculations on answers from pervious calculations =?Utf-8?B?S2FybCBFdmVyZXR0?= Microsoft Excel Misc 1 6th Oct 2004 02:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 PM.