Page 2 of 2 FirstFirst 12
Results 16 to 28 of 28
  1. #16
    GregShah is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Canton, Ohio
    Posts
    68
    I have a repair and compacted version of my DB that I am happy to share. What is the best way for me to share this with the forum?




    Sorry for my lack of experience. I normally have worked out my details from reading. This ones been a challenge.

    Greg

  2. #17
    Micron is online now Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,375
    Click Go Advanced. Select 'Attachments' at the top right of the toolbar. You navigate to, then select the attachment and upload. There is a max file size that usually requires you to zip the db first.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #18
    GregShah is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Canton, Ohio
    Posts
    68

    Attached Test DB

    Test DB.zipTried to upload a version of my DB for you to see.

    Not sure if I did this properly.

  4. #19
    GregShah is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Canton, Ohio
    Posts
    68
    It looks like my Test DB uploaded.

    Quick explanation. Table CID Base Price List is the master list of every item along with the base price. Current Multipler is the quarterly price adjustment. Historic Multiplier tracks the changes by quarter. The Job table will be a list of active jobs. The PO Details is the list of the quantity, item number for the active jobs.

    Only one query has a real purpose. This query adjusts the base price to the current quarterly price based on the multiplier. The other queries were a fail attempt to get my form to work.

    My goal is to have a form/subform. The form will contain the info pertaining to the main job number. The subform will include quantity, a combo box to select the CID number and then the current pricing. If entered correctly, this form/sub will match my customr's PO. I can then track item quantities ordered over the course of the year, most ordered items, etc.

    My help will be GREATLY appreciated.

    Greg

  5. #20
    GregShah is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Canton, Ohio
    Posts
    68

    DB Attachment

    Here is a copy of my DB.

    Greg
    Attached Files Attached Files

  6. #21
    Micron is online now Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,375
    There is no subform in your posted db??
    I created a form and subform. In the subform, I used dlookup to find the current price of the item. When I just open the subform alone, the current price is displayed accurately. However, when I open the main form, I get a error #Name? Everything else displays properly.

  7. #22
    GregShah is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Canton, Ohio
    Posts
    68
    I do not have a working version although I have tried several options. The only fields I am trying to include are the quantity, the CID number selected using a combo box and finally the current price extracted from the currentprice query. I could get the combo box to work but I could not tie the current price to the selected CID.

    Greg

  8. #23
    GregShah is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Canton, Ohio
    Posts
    68
    I tried to use the dlookup function to pull in the current price. The first two arguments were =dlookup("current price",[currentprice],"[cid]= and this is where I got into trouble. I could not direct the function to pull the current price for the CID matching the CID selected in the combo box.

    I kept deleting the subform when I could not get it to function correctly.

  9. #24
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It is almost always better to use an AutoNumber as your table's Primary Key (PK). If you do then Access can assist in creating your relationships and besides, an index of numeric fields runs faster than text ones. You can always make any field unique.

  10. #25
    GregShah is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Canton, Ohio
    Posts
    68
    Not a problem. Right now, I used the CID number as the primary key because it is a unique number. Changing the key to autonumber is not a problem.

  11. #26
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I think you will find that helps you design the database better.

  12. #27
    Micron is online now Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,375
    Well, I'm not sure where this is going. It's one thing to ask for help with what you have. It's another thing to remove it then ask someone to create it for you, especially without a crystal clear understanding of the requirements. If you create your forms as best as you can, maybe we can come up with a solution. Start with representative data in your tables, and if the forms are to be based on queries instead of tables, ensure those queries return the data you expect. Then build the forms. You'll need to review your thread to ensure you've made it quite clear as to what you want to happen. Not saying you haven't, but this has gone onto a second forum page and one cannot review all the posts while composing an answer.

  13. #28
    GregShah is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Canton, Ohio
    Posts
    68
    Great Point. I keep trying to solve which keeps evolving my DB. I am going to open a new thread with a clean copy of my DB along with a form with four different dlookup versions, none of which are working for me. Please refer to Trouble with Dlook up in Subform.

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

Similar Threads

  1. Replies: 3
    Last Post: 03-26-2015, 06:50 PM
  2. Replies: 2
    Last Post: 12-07-2014, 10:03 PM
  3. Replies: 1
    Last Post: 11-14-2014, 05:12 PM
  4. Replies: 6
    Last Post: 08-20-2014, 06:43 PM
  5. Form works, Subform gets error
    By jlclark4 in forum Forms
    Replies: 9
    Last Post: 01-03-2011, 09:24 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