User Profile

Collapse

Profile Sidebar

Collapse
brent78
brent78
Last Activity: Jun 2 '16, 10:54 PM
Joined: Mar 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • brent78
    started a topic aggregate / subquery help

    aggregate / subquery help

    This seems like it should be straight forward but I can't figure it out. I want to find the largest quantity for each Item and have it return the ID for each group.

    ID Item Quantity
    1 A 4
    2 A 3
    3 A 5
    4 B 3
    5 B 5
    6 B 4
    7 C 5
    8 C 4
    9 C 3

    Anticipated Results:
    ID Item Quantity
    3 A 5
    5 B 5
    7 C 5
    See more | Go to post

  • Thanks. I actually just discovered that I had one parameter too many on line 24. I have the following code which works fine now but I have one other problem.
    from line 24
    Code:
    Set rstTimes = qdfTimesQuery.OpenRecordset(dbOpenDynaset)
    My parameter query occurs in a nested query and I'm not sure how to pass this data to querydef to use in my main recordset. Is it possible to use a parameter from a nested query?
    See more | Go to post

    Leave a comment:


  • brent78
    started a topic QueryDef and recordset using parameter on forms

    QueryDef and recordset using parameter on forms

    I am trying to pass a parameter value from a query to use in my recordset. The parameter value comes from a form but I am getting a datatype conversion error when when assigning the recordset to use the querydef param. Below is the code I have and a screenshot of the query is attached.

    The main idea is to scroll through the results of the parameter query and store values to a temporary table

    Code:
    Option Explicit
    ...
    See more | Go to post
    Last edited by NeoPa; Oct 19 '11, 03:21 PM. Reason: Made picture viewable

  • brent78
    started a topic Problem with an exported access report to excel

    Problem with an exported access report to excel

    I'm trying to export an access report to excel and have run into a problem. One of my fields is a text field and when it is exported to excel some of the data values show up correctly and some are given by a serial number (date format). Here is my data

    067-02
    067-01
    196-00

    196-00 appears correctly but 067-02 and 067-01 are converted to a serial date number. Is there any way to prevent this from happening?...
    See more | Go to post

  • brent78
    started a topic vba to print double sided

    vba to print double sided

    I have some buttons on my form to preview my report or to just print it directly. Is it possible to have it print double sided on the fly?

    Thanks
    See more | Go to post

  • set focus on 1st item in combo box & error handling

    I have 2 questions.

    1)How can I do a setfocus on the first item in a combo box populated with a query. I figured I could somehow use the index of 0 but I can't figure out the syntax to do it.
    2)I set up error handling on a subform that requires a field in the main subform to be clicked. If the user doesn't select one I get the constraint violation. How can I cause the subform to default back to as if nothing was typed there....
    See more | Go to post

  • brent78
    started a topic Multiple Column Sub Report

    Multiple Column Sub Report

    I am trying to make a subreport that uses multiple columns that goes down then across. I want it to go down only like 5 inches of the page though and then to switch to the other column. So essentially I'm looking for a 2x4 column that keeps repeating down the page in around 4 inch intervals. Can this be done? I have it working fine but it goes the duration of the page and I need another subreport below this subreport. I'm grouping on Site type...
    See more | Go to post

  • Thanks, I was playing around too and found this to work. I put an invisible text field on the report and set my check box control to this:

    =Not (IsNull([txtTransaction]))...
    See more | Go to post

    Leave a comment:


  • brent78
    started a topic convert text value to a true false for a report

    convert text value to a true false for a report

    I am trying to show whether or not a certain type of transaction has occured. The query result displays the text value of the transaction. Is it possible to have this show up as a true/false check box in an access report?

    Ex: all transactions that have "proccessed " will show up as a true check box, and all null values would show up as an unchecked check box in the report.

    Thanks
    See more | Go to post

  • brent78
    started a topic conditional report loading based on query result

    conditional report loading based on query result

    I am trying to create a form that when submitted it checks a query total result. If the result is 0 i want to load "rpt_1" otherwise I want it to load "rpt_2". I have everything setup, but I just don't know the syntax to get the result into the form to check it and compare it.

    Thanks.
    See more | Go to post

  • syntax to pass a variable when loading a report

    I'm just trying to pass a variable into a report using vba but I can't seem to get the syntax right. I have

    DoCmd.OpenRepor t "Report", acViewPreview, "", "[Report_query]![sGroup]=" & var

    If I put the var in brackets [var] then it acts as a normal param query and works if I type it in. But I want it to send a var name that I get from a list box to automatically run the report.
    ...
    See more | Go to post

  • brent78
    replied to aggregate query
    Yes, there can be duplicate colors and there is a primary key as shirt_id...
    See more | Go to post

    Leave a comment:


  • brent78
    started a topic aggregate query

    aggregate query

    I'm trying to create a query that finds the max of a group of records and then displays all details about that record. Suppose this is my data:

    Type Size Color Quantity
    A L Green 5
    A M Blue 7
    B S Orange 2
    B M Red 4
    B L Purple 5
    C M Red 10
    C L Green 12

    How can I get output as
    Results:
    Type Size Color Quantity
    A M Blue 7
    B L Purple 5
    C...
    See more | Go to post
No activity results to display
Show More
Working...