Recent content by Salwa

  1. S

    Using a summed field to calculate another field

    is a field in AbsenteeismTable that i need to add to the Sum(AbsenteeismTable.TAKEN to end up with a balance.
  2. S

    Using a summed field to calculate another field

    I have the following query SELECT COSTCENTRES.GROUP, Corp1.COSTCENTRE, COSTCENTRES.RESP_DESC, AbsenteeismTable.EMP_ID, AbsenteeismTable.NAME, Corp1.GRADE_DESC, Corp1.EMPLOYMENT, Sum(AbsenteeismTable.TAKEN) AS SumOfTAKEN FROM (Corp1 INNER JOIN COSTCENTRES ON Corp1.COSTCENTRE =...
  3. S

    selecting fields from a subquery to be included in the main query

    i get the following message with your modified query. At most one record can be returned by this subquery.
  4. S

    selecting fields from a subquery to be included in the main query

    at the moment 1, as I have doctored the data
  5. S

    selecting fields from a subquery to be included in the main query

    I am BA not a coder and I have limited experience with MS Access. So unsure how to do what you are saying.
  6. S

    selecting fields from a subquery to be included in the main query

    no, it is a different value to that of the one in the main query. the Code value in the main query is either A654 or A655 and the code value in the subquery is either A630 or A636.
  7. S

    selecting fields from a subquery to be included in the main query

    Hi How do I get the subquery T1.CODE value to be displayed as part of the main query? Thanks heaps SELECT CopyTIMEENTRY.TCT, tblPayrollOfficers.TCTNAME, CopyTIMEENTRY.EMP_ID, CopyTIMEENTRY.NAME, CopyTIMEENTRY.TRANSDATE, CopyTIMEENTRY.CODE FROM tblPayrollOfficers INNER JOIN CopyTIMEENTRY ON...
  8. S

    Using IIF function in the ORDER BY statement in a Query

    Thanks for the prompt response. I am BA trawling through SQL queries and VBA code to reverse engineer requirements. I was unclear as to how you can change the sort condition midway through. How would it work for the following? EMP_ID DATE_HIRE ETPSTARTDATE EMP_STATUS 21214 24/11/2008...
  9. S

    Using IIF function in the ORDER BY statement in a Query

    I came across the following syntax in a query ORDER BY TEST.EMP_ID, IIf(IsNull([ETPSTARTDATE]),[DATE_HIRE],[ETPSTARTDATE]); Appreciate if someone can explain to me how this works, with examples. I was unaware that you could do this. Thanks heaps sample data EMP_ID DATE_HIRE ETPSTARTDATE...
  10. S

    Query Syntax explaination

    Thanks all for your prompt responses. June7 provided the answer. I found the procedure with the relevant information.
  11. S

    Query Syntax explaination

    Hi all. Appreciate if someone can tell what the following syntax in a SQl statement is doing and how it actually works...
Top Bottom