Results 1 to 12 of 12
  1. #1
    dylcon is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Ann Arbor
    Posts
    130

    Producing A Schedule

    Hello, I have been working on an inventory database where I will be tracking all of the transactions (incoming, outgoing, and internal adjustments) for a specific part. Curently, I have Incoming, Outgoing, and Transaction tables that tell when the transaction occured for a specific part. See relationship:
    Click image for larger version. 

Name:	Capture8.jpg 
Views:	29 
Size:	80.9 KB 
ID:	12739



    What I am trying to do next is gather all of that information into a report. My plan of attack is having a form that will allow the user to select the PartNumber, Date to go back to, etc. From there I would like a simple report (or table) that lists all of the transactions for the part. If anyone has any suggestions for how to go about this, I am all ears!

  2. #2
    dylcon is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Ann Arbor
    Posts
    130
    Does anyone have any ideas? I need to finish this database as soon as possible and this is almost my last step..

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Why are you splitting up your adjustments, outgoing and incoming into separate tables, it's virtually identical data all you'd need is an indicator in a table (I, A, O) to indicate the type of transaction it was.

    That aside your relationships should tell you.

    use your tblPartPO as a base, link in your incoming, adjustments and outgoing put between [enter start date] and [enter end date] in the criteria of all three subtable date fields
    Make the query an aggregate query (look for the sigma button, looks like a capital E on your ribbon bar) make the TOTALS line say WHERE for each of the date fields
    Add your quantity fields from your adjustments, outgoing, incoming and change the totals to SUM
    In the PARTID field from your tblPartPO table select the part with [enter the part number] or, if you're setting your search criteria through a form [form]![formname]![fieldname]

  4. #4
    dylcon is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Ann Arbor
    Posts
    130
    It was more intuitive for me to split it up into three different tables. There are forms that are bound to the tables, which were easier to build that way as well. What is the best way to show what type of transaction it is (with an I, O, differnt type of adjustment key) with keeping my tables in the current format?

  5. #5
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    if you follow my suggestion in the previous post you can label the columns whatever you want

    For instance when you sum incomingquantity you can give it an alias of Incoming_Total

    Incoming_Total: sum(incomingquantity)

  6. #6
    dylcon is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Ann Arbor
    Posts
    130
    Well, I modified my database so that all transactions (Incoming, Outgoing, Adjustments) are in one table.

    I still am not bale to achieve what I would like, however. What you described above is filtering it by PartPOID, I wanted to do it by just PartID. I also do not need it to be an aggregate query because I just want to view the records as is, without modifying them for sums or anything of that sort. I basically would just like to filter it so I can find:

    1) Transaction Date
    2) Transaction Type
    3) Transaction Quantity
    4) Transaction Notes

    for a specific part type from StartDate until EndDate.

  7. #7
    dylcon is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Ann Arbor
    Posts
    130
    Nevermind, I have figured it out.

  8. #8
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

  9. #9
    dylcon is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Ann Arbor
    Posts
    130
    Sure thing, orange. I attached the correct tables that show the part number (tblPartInfo) to the query and set the Criteria = [Form]![Form]![DesiredField] and then added the fields that I wanted to show and set the start and end dates from my form as the criteria for the date field on my query. I have this query running on a button on my form, which produces the table that I desired, and then I have a report built on top of the query that will allow for a more convenent way to view/print the records.

    I do still have one question:

    In my report, I have all of the information that I want, but in a title, textbox, or whatever is easiest, I would like to display the CustomerName and PartNumber that the data is being shown for. It was selected from the form that runs the query. I just don't know where the row source property is in reports

  10. #10
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I believe Reports have a RecordSource property. You could add the Name and Product to the recordsource (query/table) and they should be available in Report design -- I think.

  11. #11
    dylcon is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Ann Arbor
    Posts
    130
    How exactly would I do this? Also, if I want to open the report that is based on the query that is runnng from my form, I should just be able to do this:

    Code:
    Private Sub Applycb_Click()    
        Me.Refresh
        DoCmd.SetWarnings False
        DoCmd.OpenQuery "PartRecordQuery", acViewNormal, acEdit
        DoCmd.OpenReport "PartRecordQueryReport", acViewNormal, acEdit
       
    
    
        Me.PONumbercbo.Enabled = False
        Me.CustomerNamecbo = Null
        Me.PartNumbercbo = Null
        Me.PONumbercbo = Null
        
    End Sub
    but it is not opening the report

  12. #12
    dylcon is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Ann Arbor
    Posts
    130
    Actually, it may just be printing it... the printer is downstairs and I just realized there are several sheets in there.

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

Similar Threads

  1. Help producing queries
    By skidia in forum Access
    Replies: 1
    Last Post: 05-13-2013, 12:21 PM
  2. Replies: 15
    Last Post: 10-22-2012, 06:06 PM
  3. Producing a stand-alone Access Program
    By GordonT in forum Access
    Replies: 3
    Last Post: 08-20-2012, 02:23 PM
  4. Queries & Macros aren't producing results after system crash
    By Nashskye13 in forum Database Design
    Replies: 2
    Last Post: 06-07-2012, 03:12 PM
  5. Schedule Preparation
    By crapmind in forum Programming
    Replies: 0
    Last Post: 03-08-2009, 09:05 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