PC Review


Reply
Thread Tools Rate Thread

Date - Date, TimeStamp - Time, Joined, BUT NOT WORKING

 
 
=?Utf-8?B?UmljaGFyZA==?=
Guest
Posts: n/a
 
      22nd Jun 2005
Dear all,
I have one table TblCW with as below:

[Date] as date/time record type
[TimeStamp] as date/time ...
+ other data fields

Then I have a query QryCPK which takes both [Date] and [TimeStamp] like:

CDate([Date]) AS Datum

TimeValue([TimeStamp]) AS [Time].

Then I have another query "QryTotErrs" for further calculations and TOTALs
which links both TblCW and QryCPK and joins are like:

[TimeStamp].TblCW 1---1 [Time].QryCPK,
[Date].TblCW 1---1 [Datum].QryCPK

By which I of course need all the data which are equal. What happens is:

- Some data are missing! (I should have obtained 231 records, but obrained
only 66!!!)
- If I used 1 ----> "many" join property TblCW ----> QryCPK, I obtained all
necessary records from TblCW but some some fields, like where "iif" function
used in Qry.CPK showed "#Error" and other were blank (null).

I check those joined fields from those records which were missing from both
TblCW and QryCPK even in Excel, and matched absolutely!

Could anybody help?

THANKS

Complete SQL statement for the "wrong working QRY":
SELECT QryCPK.CW, tbl_CW.MachineNumber,
Format([Date],"ww")-1 AS Week,
tbl_CW.Date,
tbl_CW.TimeStamp,
QryCPK.Shift FROM tbl_CW LEFT JOIN QryCPK ON
(tbl_CW.MachineNumber = QryCPK.MachineNumber) AND (tbl_CW.Date =
QryCPK.Datum) AND (tbl_CW.TimeStamp = QryCPK.Time)

ORDER BY tbl_CW.MachineNumber, Format([Date],"ww")-1, tbl_CW.Date,
tbl_CW.TimeStamp;

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting a hex timestamp to a readable date/time Faye Microsoft Access Queries 1 30th Apr 2009 12:02 AM
Formating a timestamp as a date and time. =?Utf-8?B?RGFu?= Microsoft Excel Worksheet Functions 3 20th Apr 2007 05:38 PM
Converting UTC timestamp value to date and time =?Utf-8?B?U0s=?= Microsoft Excel Misc 1 19th Mar 2007 02:40 AM
Convert Unix timestamp to Readable Date/time =?Utf-8?B?RW1pbHk=?= Microsoft Excel Worksheet Functions 2 26th Jan 2006 11:59 PM
how to insert date and time to timestamp in Access xfile Microsoft Access 2 18th Jan 2005 12:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:16 AM.