User Profile

Collapse

Profile Sidebar

Collapse
minchazo
minchazo
Last Activity: Jun 6 '08, 07:14 PM
Joined: Apr 24 '08
Location: Wisconsin
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • minchazo
    replied to #Error in form footer
    I got it! I referenced the value directly from the query instead of using the textbox it was being displayed in.

    i.e. instead of using txtCost, I used the "Line Cost" column in the query.

    =Sum([Line Cost])
    See more | Go to post

    Leave a comment:


  • minchazo
    replied to #Error in form footer
    I'm not using the Nz function nor the Format function. I double-checked my query and changed the format of the field in the query to 'general number.' I set the format of the txtCost and the txtSubTotal field to 'Currency,' all of this in the properties of the field.

    I tried using the formula you suggested =sum(CCur([txtCost])), I get the same error. I tried using CDec instead of CCur and got a popup that the expression was wrong:...
    See more | Go to post

    Leave a comment:


  • minchazo
    started a topic #Error in form footer

    #Error in form footer

    I'm trying to create a Total field in the footer of a subform.

    My initial form uses three boxes to narrow down what will be displayed in the subform. My subform is created off of the query qryPickList. My total field is in the footer of the subform. It's a text field named txtSubTotal. I need to sum all the txtCost fields (displayed as currency) of all the displayed records in the subform.

    If I try giving it the Control...
    See more | Go to post

  • minchazo
    replied to Relationships & Database Design
    jeffstl,

    Thanks! Your response got me thinking, and I was able to create something similar to what I wanted. I created a form with three listboxes that together specify one PickList. With a subform, I display the PickListItems that are related to that one PickList. Since it's in a form, I can easily add the calculated field. Using Listboxes instead of comboboxes let the users see what other options are available at each level of comparison....
    See more | Go to post

    Leave a comment:


  • minchazo
    started a topic Relationships & Database Design

    Relationships & Database Design

    Using Access 2003, I've built a simple database with some tables that are related to each other. I'm pretty new at using Access, so I've just discovered that when you have a one-to-many relationship, you can drill down to a related table by hitting a plus sign at the left of the record. (e.g. 'PickList' -> 'PickList Item').

    Is there any way to duplicate this format on a report?

    'PickList Item' needs to have a calculated...
    See more | Go to post

  • minchazo
    replied to Can I modify a report from a table?
    Errr, oops? I was using a form instead of a table. I even named the form as if it was a table, which I had to fix in the database (frmReport instead of tblReport)....
    See more | Go to post

    Leave a comment:


  • minchazo
    replied to Can I modify a report from a table?
    Wahoo! That works perfectly, thanks!
    See more | Go to post

    Leave a comment:


  • minchazo
    started a topic Can I modify a report from a table?

    Can I modify a report from a table?

    I'm using Access 2003. I'm using a control button in a table (tblReport) to open a weekly report. The report has to run for four separate sites, all stored in tables together.

    I can create a separate query and report for each site by changing this line in my query for each site:

    Code:
    WHERE Site_Name="Site1"
    I am adding a comboBox to tblReport so I can capture the site that the user wants to see. Do you know...
    See more | Go to post

  • I did something similar on a form of my own. Try adding this to the Form_Activate() event:

    Code:
    Me.ComboBox.Requery
    Replace ComboBox with the name of your combo box
    See more | Go to post

    Leave a comment:


  • minchazo
    replied to Subquery and joined tables
    I figured it out! I guess this shows how little experience I have at SQL. I used the following as a query:

    Code:
    SELECT tblPickList.[Procedure Name], tblPickList.Physician, tblPickList.Location, Sum([Number Open]*[Cost]+[Number PRN]*[Cost]) AS SubTotal
    FROM tblSupplies INNER JOIN (tblPickList INNER JOIN tblPickListItem ON tblPickList.PickListID = tblPickListItem.PickListID) ON tblSupplies.[Supply name] = tblPickListItem.[Supply name]
    ...
    See more | Go to post

    Leave a comment:


  • Yup, that would be me. I need to design reports/forms to calculate and display the values instead of trying to record it in a table, correct?

    And I need to go review my old database design textbooks......
    See more | Go to post

    Leave a comment:


  • minchazo
    started a topic Subquery and joined tables

    Subquery and joined tables

    I'm working on a SQL query in Access 2003 to find the average value for a given "Procedure Name."

    tblPickList has the list of procedures. tblPickListItem lists each supply and quantity used in the procedure, while tblSupplies has the cost for each item.

    The following code is supposed to list the procedure and average cost for the procedure. For the SubTotal column, I sum the cost of all items being used and...
    See more | Go to post

  • minchazo
    started a topic Are hidden fields in forms a bad coding practice?

    Are hidden fields in forms a bad coding practice?

    Hello,

    I've been creating some forms recently in Access 2003 and using hidden textboxes quite a bit. As an example, the visible textbox CasesDone uses the DLookup function to sum the records in table Cases.

    The hidden textbox in the form (HiddenCasesDon e) is bound to the Week_Data table and I set the value of that textbox with a form event.

    Is there a better way to do this? I seem to recall when taking...
    See more | Go to post
No activity results to display
Show More
Working...