Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Yes, it should have been something like:
    If Len(Nz(Me!SomeField,"")) = 0 Then
    Hmm,I must not be perfect after all!

  2. #17
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    OK Gents, I have minimized the amount of record that must be stored. 5 each to keep the report open and all 0's. Thanks for the clarification on where to put the NZ function.

    Now how would I set the Closed_Date to set the 5 records to current date. I want to set a date limter for a week, such as:
    Between DateSerial(Year(Date()),Month(Date())+1,-7) And DateSerial(Year(Date()),Month(Date())+1,0)

    Basically I think it is an IIF function: IIf([Change Request].[Change_Requested]="Do not delete", [Change request].Date_Closed]=Date(), [Date_Closed])

    I have this in a combined query for the report:
    SELECT CR_Crosstab.LEVEL1, [CR_Crosstab].[HB Totals]-1 AS [Total HB], [CR_Crosstab].[Approved]-1 AS Approved, [CR_Crosstab].[Deferred]-1 AS [Deferred], [CR_Crosstab].[Denied]-1 AS Denied, [CR_Crosstab].[Pending]-1 AS Pending, [CR_Crosstab].[Withdrawn]-1 AS Withdrawn, [Total CRS].[CountOfLEVEL1]-5 AS [Total CRs], [Total HB].[CountOfLEVEL1]-4 AS HBTotal
    FROM CR_Crosstab, [Total CRS], [Total HB]
    GROUP BY CR_Crosstab.LEVEL1, [CR_Crosstab].[HB Totals]-1, [CR_Crosstab].[Approved]-1, [CR_Crosstab].[Deferred]-1, [CR_Crosstab].[Denied]-1, [CR_Crosstab].[Pending]-1, [CR_Crosstab].[Withdrawn]-1, [Total CRS].[CountOfLEVEL1]-5, [Total HB].[CountOfLEVEL1]-4;

  3. #18
    qa12dx is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    india
    Posts
    112
    dont use null fields. have a default value. if you update the default value now, it will affect new recs only. so, run a update query on null fields to default value.

    null is very hard to work with, in access

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    I don't always use default value because no data has meaning to me. My database is to store laboratory test data. I can't store a default value because a value means data was obtained and if data really was not obtained, that is misleading. Even a 0 or a negative sometimes can be a valid test result. So I allow nulls but I don't allow empty strings.

    However, Thompyt, I don't really understand your last post.

    CROSSTAB handles filter parameters different from other queries. Review Allen Browne article again.
    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.

  5. #20
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    I've found the work around for the null field issue with the NZ function in the report. That's all good. The date issue with the Date_Closed field, I think I have found a work around on that as well. I can run an update query through a macro to run it when opening the report. It will update those specific rows that meet certain criteria. I do not want to set a default value for the Date_Closed field. This happens when the action is closed by the user.

  6. #21
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    I fixed the date with Between Date()-7 And Now(). I thought I had the Sum of the fields fixed, but I can't seem to get this done. Any suggestions? It is in the Page Header and not the report footer.

  7. #22
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    I think aggregate calc must be in a group or report header/footer. Seems to #Error in page header/footer.
    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.

  8. #23
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    Got it all figured out, To this point LOL. How do we mark this as solved?

    Thanks

  9. #24
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    Thread Tools dropdown above first post.
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 16
    Last Post: 12-12-2013, 01:23 PM
  2. Replies: 1
    Last Post: 04-28-2013, 09:43 PM
  3. Replies: 3
    Last Post: 05-09-2012, 04:04 PM
  4. Hiding Navigation Pane kills macro
    By SemiAuto40 in forum Programming
    Replies: 3
    Last Post: 12-09-2011, 02:05 PM
  5. If Form Field is not null then...
    By cotri in forum Forms
    Replies: 5
    Last Post: 01-12-2010, 11:08 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