PC Review


Reply
Thread Tools Rate Thread

Will DLookup Work For This?

 
 
=?Utf-8?B?UmF5IFMu?=
Guest
Posts: n/a
 
      1st Jun 2005
Let's call my talbe journal. My relevant fields are entity, account, amount,
and DorC. My talbe is the result of several append queries. I then can run a
query on it that shows me the sum of amounts for entities and wheter the
amount is a debit or credit (DorC).

Twenty-six records in the table are used for transfers. From the view
provided by the query on the sum of entities, I transfer each of thirteen sum
amount debits to two corresponding transfer accounts on the journal table.

It works like this: the amount of the transfer will be the exact amount
corresponding to a specific entity on the sum of entities query. In the
journal table, those sums are tranfered to an account whose last five digits
correspond to the sums entity number. That amount entry is positive and a D
must be entered in the debit or credit field.

A corresponding transfer account whose entity number is the same as the last
five digits of the debit must receive the negative of that amount and C in
the debit or credit column. I hope this isn't too confusing.

e.g.,
Talbe: journal
Fields: entity, acct, amt, dorc
08001, 12408001, --- , -
Query: sums
Fields: entity, SumOfamt, dorc
08001, $470,000.00, D
Transfer accounts in Table journal:
Fields: entity, acct, amt, dorc
08101, 12408001, (the SumOfamt), (D)
08001, 12408101, (neg. SumOfamt), (C)

Can someone help me fashion some code that will automate the transfers? I've
been trying to use DLookup, but I'm having some trouble with it.
 
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 won't work - help =?Utf-8?B?QW5pdGE=?= Microsoft Access Queries 3 28th Jun 2007 11:31 PM
DLookup Does not work on one PC but it does on another =?Utf-8?B?SmltIFI=?= Microsoft Access Form Coding 2 23rd Sep 2006 12:17 PM
DLookup() - Will that work? Jim May Microsoft Access Forms 2 14th Jul 2005 02:17 AM
Help with DlookUp - I cant get this to work =?Utf-8?B?S2V2aW4gU2VicmluZw==?= Microsoft Access Forms 1 29th Sep 2004 01:21 AM
DLOOKUP can't get it to work... Manuel Microsoft Access Forms 3 21st Sep 2003 01:05 AM


Features
 

Advertising
 

Newsgroups
 


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