Results 1 to 2 of 2
  1. #1
    lsingh165 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Location
    Sydney, Australia
    Posts
    9

    Unhappy enter parameter value shouldnt come up

    Hello,



    I am using formulat below formula but the DATE_OPEN and Today (todays date) pops us as enter parameter value. I dont want those enter parameter value windows pops us. The date job is open is in a linked table and linked table is getting the information from BPCS software. The date in Liinked is in format YYYYMMDD. Please help

    Total Days: DateDiff("d",[Date_Open],[Today])

    The SQL Details are below. AUNPRDF_AAA802 is a linked table and information gets updated on 12 am everyday

    SELECT DateDiff("d",[Date_Open],[Today]) AS [Total Days], AUNPRDF_AAA802.AAAGE AS Age, AUNPRDF_AAA802.AAORD AS [Job Number], AUNPRDF_AAA802.AAWKSP AS Workshop, AUNPRDF_AAA802.AASWKT AS WorkType, AUNPRDF_AAA802.AANAME AS [Customer Name], AUNPRDF_AAA802.AANME AS [Service Admin], AUNPRDF_AAA802.AASDE1 AS Complaint, AUNPRDF_AAA802.AASDE2 AS Cause, AUNPRDF_AAA802.AASDE3 AS Correction, Sum(AUNPRDF_AAA802.AATOT) AS Total, CDate(Right([AAODTE],2) & "/" & Mid([AAODTE],5,2) & "/" & Left([AAODTE],4)) AS Date_Open, Date() AS Today
    FROM AUNPRDF_AAA802
    GROUP BY DateDiff("d",[Date_Open],[Today]), AUNPRDF_AAA802.AAAGE, AUNPRDF_AAA802.AAORD, AUNPRDF_AAA802.AAWKSP, AUNPRDF_AAA802.AASWKT, AUNPRDF_AAA802.AANAME, AUNPRDF_AAA802.AANME, AUNPRDF_AAA802.AASDE1, AUNPRDF_AAA802.AASDE2, AUNPRDF_AAA802.AASDE3, CDate(Right([AAODTE],2) & "/" & Mid([AAODTE],5,2) & "/" & Left([AAODTE],4)), Date(), AUNPRDF_AAA802.AARTYP
    HAVING (((AUNPRDF_AAA802.AARTYP)="1"));
    Click image for larger version. 

Name:	Capture.PNG 
Views:	10 
Size:	116.3 KB 
ID:	10905

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    It's because those fields are fields constructed by expression in an aggregate query. Would have to repeat the expression in the Total Days calculation. The Total Days expression in the SQL statement is not the same as in the image. The image shows Date() and the SQL shows [Today].

    Why do you have to convert AAODTE value to date? It is not date/time field?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Enter Parameter Value?
    By IzzyKap in forum Forms
    Replies: 3
    Last Post: 12-21-2012, 08:43 AM
  2. Replies: 13
    Last Post: 01-10-2012, 09:56 AM
  3. Enter Parameter value?
    By hlcarlin in forum Forms
    Replies: 3
    Last Post: 07-06-2011, 08:09 AM
  4. Enter Parameter Value
    By gutes2 in forum Forms
    Replies: 3
    Last Post: 03-03-2010, 05:03 PM
  5. Enter Parameter Value
    By plesser in forum Access
    Replies: 1
    Last Post: 11-08-2008, 10:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums