Computing.Net > Forums > Database > dlookup issue in Access

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

dlookup issue in Access

Reply to Message Icon

Name: Chappy
Date: June 18, 2009 at 09:01:31 Pacific
OS: Windows XP
Subcategory: General
Comment:

I am a novice Access user. I am unable to get the answer from DLookup that I am expecting.

Question: I just need to find out the minimum wage in effect at a specific payroll date. I am trying to extract minimum wage rate data from a table (tblMinimumWage) that has 3 columns (MinWageID, Date, MinWage). The data in the minimum wage table is daily. I have records for minimum wage for each day for the last 30 years. I created a query pulled down a field from another table which shows payroll date as "DatePd". The table "tblMinimumWage" is not a table in my query. My formula in the field section of the query is MinWageRate: DLookUp("MinWage","tblMinimumWage","DatePd"). "DatePd" refers back to a field in the current query. My problems are either an error message stating MS Access can't find the field in my criteria "DatePd" or it returns the first record in the "MinWage" field which is incorrect also. It appears I have a problem with the criteria section.

I hope all my ramblings make sense. Thanks in advance for your assistance.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: dlookup issue in Access

Dynamic functions in Access 2003 www.computing.net/answers/dbase/dynamic-functions-in-access-2003/326.html

Shortcut for new record in Access? www.computing.net/answers/dbase/shortcut-for-new-record-in-access/120.html

Import Multiple *txt in Access www.computing.net/answers/dbase/import-multiple-txt-in-access/41.html