[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Error: Access Unknown

Posted on 2006-11-21
1
Medium Priority
?
170 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
Ajay-Singh earned 500 total points
ID: 17993918
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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

656 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