Solved

Error: Access Unknown

Posted on 2006-11-21
1
167 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 125 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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 if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

688 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