Jumat, 09 Januari 2015

Re: [MS_AccessPros] Append record based on criteria question

 

Duane,

I am writing an append query to append some counts to a table based on a downloaded excel sheet. But after thinking about the situation I am thinking of writing a query to get the counts using IIF and then append the values to the table.

I am trying to get counts of employees based on campuses and obviously an all counts. I want to do an append query each day I do the download. This way I can track the counts.

I tried to do this below but it is giving me an all count
SELECT Count(IIf([Loc Id]="POLY",[Person Id],0)) AS [Count of Poly]
FROM [R&D-CURRENTEMPLOYEES];

The fields I am looking at are Person Id, Loc Id

 There are four campuses
DT
Tempe
Poly
West

Jim Wagner


On Friday, January 9, 2015 8:51 AM, "Duane Hookom duanehookom@hotmail.com [MS_Access_Professionals]" <MS_Access_Professionals@yahoogroups.com> wrote:


 
Jim,
 
Do you want to create an append query or write some VBA code or what?
 
Can you share the table(s) fields and values you want to go into the fields?
 
Is this from a form? Are there values on the form that need to go into the table?
 
Duane Hookom MVP
MS Access
 

To: MS_Access_Professionals@yahoogroups.com
From: MS_Access_Professionals@yahoogroups.com
Date: Fri, 9 Jan 2015 15:17:40 +0000
Subject: [MS_AccessPros] Append record based on criteria question



Hello all,

I am trying to append a record into a table based on the date in the record. the table name is tblCurrentEmployeesAnalysis where the field DateOfProcess has a default value of Date(). But I am blank on a Friday on how to do this. Any help would be appreciative.

Thank You
 
Jim Wagner




__._,_.___

Posted by: Jim Wagner <luvmymelody@yahoo.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

.

__,_._,___

Tidak ada komentar:

Posting Komentar