Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    JPP is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2013
    Posts
    19

    Queries is my next step?

    Ok, I am using access 2013 and have built several databases to track things like jobs my contractors are doing, orders, etc.

    I have the table built, and have gotten to the point to where I can enter a new entry via the form.

    My next step I guess would include a query.

    What I want to do is for my boss to pull up a report and have a search box she can type in an order number (*there is a field for Order # in this database) and the report shows this order with all the info in it in a nice printable sheet.



    I've heard of combo boxes but I do not understand how to create them. I think a report with a search box for a certain field (*Order number in this case) entry that displays the entire "order" associated with it should be easy to create. Help?

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I have the table built, and
    You only have the one table?

    If you have jobs, contractors and orders, that implies that you need at least 3 tables and most likely more.

  3. #3
    JPP is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2013
    Posts
    19
    Correct. Sorry about the confusion. I have several databases functional but all have the same end result needed. Searching by a particular field. Each database has only one table with roughly 10 fields.

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I have several databases
    Why do you have several databases rather than just 1?

  5. #5
    JPP is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2013
    Posts
    19
    You'll have to understand I am at level 0 here haha. This is the first time I picked up Access. I have several things I need to keep track of, so I separated the databases. Yes, I see now that I could have all the tables and forms in one database, but it is what it is...

  6. #6
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    It is very easy to copy the tables from the other databases into one or you can have one master database that links to the tables in all of the other databases and then you can develop your forms, queries and reports in 1 database. Out of curiosity, what type of data is in the other tables? If they essentially contain the same type of information, then it would be best to consolidate the data into the appropriate table structure in 1 database. That would make your life a lot easier in the long run.

  7. #7
    JPP is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2013
    Posts
    19
    One is a list of passwords, one is on jobs we do, one is on jobs we do that get adjusted money wise, two are very similar quality control checkups. I think I will keep them separate as my boss is not savvy at all.

  8. #8
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    What I want to do is for my boss to pull up a report and have a search box she can type in an order number (*there is a field for Order # in this database) and the report shows this order with all the info in it in a nice printable sheet.
    As long as the information pertinent to the order is in one database, you can do this. This is the process:

    1. Create a new form (one that is not bound to a table).
    2. Using the combo box wizard, create a combo box based on the order table and include the order number field and any other fields you want your boss or any other user to see in order to help them select the order they want. You want Access to remember the order number (there should be an option for this as you step through the wizard). Make a note of the name of the combo box. Access usually assigns a "combo" box a name of combo with a number. Save the form.
    3. Create a query based on the order table. In the criteria section of the query for the order number field/column, you want to reference the form/combo box as follows: forms!formnamehere!comboboxnamehere. Save the query
    4. Create your report based on the query you created in step 3.
    5. Reopen the form from step 2 in Design View. Using the command button wizard, add a command button. Make sure to select the option to open a report and select the name of the report you created in step 4. Save the form

    That should do it. Hopefully I haven't missed anything

  9. #9
    JPP is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2013
    Posts
    19
    Ok, everything LOOKS good but the data is not pulling up... typed in an order #, and it appears to perform a search but no data comes up??

  10. #10
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    typed in an order #,
    Are you selecting an order number from the combo box?

    When you say no data comes up do you mean that the report opens & it is blank or the report does not open?

  11. #11
    JPP is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2013
    Posts
    19
    Actually, I must have done something wrong... I do not see "Order number" nor a field to type in for the search. I will try again

  12. #12
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    What is the row source of the combo box that you created (property sheet->data tab)? It should start with the word SELECT.

  13. #13
    JPP is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2013
    Posts
    19
    Ok, I got it to show all the order numbers, but when I select one and hit the button it shows no results. Click image for larger version. 

Name:	arrrg.jpg 
Views:	7 
Size:	43.5 KB 
ID:	11297

  14. #14
    JPP is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2013
    Posts
    19
    There are no entries in the data tab

  15. #15
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Can you zip and post a copy of your database (with any sensitive data altered or removed)?

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

Similar Threads

  1. multi-step process with click of button
    By pg13Reader in forum Forms
    Replies: 4
    Last Post: 12-12-2011, 11:12 AM
  2. step and step proccess
    By toochic in forum Programming
    Replies: 5
    Last Post: 10-09-2011, 09:34 AM
  3. Search what step is the repair work in
    By blueraincoat in forum Access
    Replies: 6
    Last Post: 04-14-2011, 02:49 AM
  4. Is There a Way to Debug or Step Through VB code?
    By jeffbase34 in forum Programming
    Replies: 1
    Last Post: 05-28-2009, 08:14 PM
  5. Replies: 4
    Last Post: 04-29-2009, 04:59 PM

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