PC Review


Reply
Thread Tools Rate Thread

DlookUp & then adding various fields

 
 
=?Utf-8?B?TmV3Ymll?=
Guest
Posts: n/a
 
      9th Jun 2005
hi, i have a table that has names of people with a total number of parts for
each respective name. What i want to do is to total the values together and
use it in a text box on a form as a grand total for the department.
Can this be done with code or should one use queries ?
--
Les
 
Reply With Quote
 
 
 
 
Lance McGonigal
Guest
Posts: n/a
 
      9th Jun 2005
I would use code. It's much more flexiable and controlable. For a control
freak like me that works best.

good luck

"Newbie" <(E-Mail Removed)> wrote in message
news:00A08A6D-6B60-4DA0-A07B-(E-Mail Removed)...
> hi, i have a table that has names of people with a total number of parts

for
> each respective name. What i want to do is to total the values together

and
> use it in a text box on a form as a grand total for the department.
> Can this be done with code or should one use queries ?
> --
> Les



 
Reply With Quote
 
Tim Ferguson
Guest
Posts: n/a
 
      9th Jun 2005
=?Utf-8?B?TmV3Ymll?= <(E-Mail Removed)> wrote in
news:00A08A6D-6B60-4DA0-A07B-(E-Mail Removed):

> What i want to do is to total the values together and
> use it in a text box on a form as a grand total for the department.


DSum("NumOfParts", "MyAnatomyTable", "PartsToBeCounted = TRUE")

You can just put the expression into the Controlsource property of the text
box in design view, so you don't need a query or any code!

Hope that helps


Tim F

 
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
DLookup Two Fields Jani Microsoft Access Macros 5 17th Dec 2008 06:09 PM
2 fields in a DLookUp Bob V Microsoft Excel Discussion 0 12th Dec 2007 10:55 PM
Dlookup (two fields) learning_codes@hotmail.com Microsoft Access Forms 3 12th Dec 2007 06:17 PM
Dlookup for 2 fields Tom Microsoft Access 10 25th May 2006 04:58 AM
Dlookup for 2 fields Tom Microsoft Access 0 24th May 2006 03:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:42 PM.