Solved

Error: Access Unknown

Posted on 2006-11-21
1
163 Views
Last Modified: 2010-03-31
Hi,

I have following query:  trying to update several fields in table based on value that is entered in each field on every wednesday.

UPDATE tblAMKCGP
SET [SystemGP/FR] = DLookUp("[SystemGP/FR]","tblAMKCGP","weekday(tdate)=4 and (tdate>date()-7")
And [SystemGP/BA]=DLookUp("[SystemGP/BA]","tblAMKCGP","weekday(tdate)=4 and (tdate>date()-7")
And [SystemGP/SP]=DLookUp("[SystemGP/SP]","tblAMKCGP","weekday(tdate)=4 and (tdate>date()-7")
And [Systemother]=DLookUp("[Systemother]","tblAMKCGP","weekday(tdate)=4 and (tdate>date()-7")
WHERE (((Weekday([tdate]))<>4) AND (([tdate])>Date()-7));

Can't figure it out? Help
0
Comment
Question by:sikan71
1 Comment
 
LVL 23

Accepted Solution

by:
Ajay-Singh earned 125 total points
Comment Utility
this query updates tblAMKCGP table setting

SystemGP/FR field to the value of column "SystemGP/FR" of table "tblAMKCGP" only if "weekday(tdate)=4 and (tdate>date()-7" is true.

same for other fields


more on DLookup: http://support.microsoft.com/kb/208786
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now