Results 1 to 3 of 3
  1. #1
    braddy is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2013
    Posts
    2

    Dynamic textboxes

    Hi all

    I'm doing an access application where you select a product and attach that product with an ordernumber and I also have a table like a library with different kind of measurements for the products.
    Now what I need to do is selecting an ordernumber from my combobox and that should trigger an event, where Access helping me to count how many different measurements this product have.

    Sometimes a product have only 1 measurement, weight for example and another product could have 7 different measurements.

    First I thought lets do this programmatically and loop through and populate the form with a textbox for each measurement, but I realize this is not an option in Access.
    I want to be able to enter data for all measurements, the thing is that different products require different amount of measurements...

    Could someone please help me and guide me in this matter?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Have you tried building a query? You can create a basic select query with only the fields you are trying to count and a column that holds a Foreign Key. With that, you can turn your query into a Totals query and change the "Totals" field in the query from "Group By" to "Count".

    Then you can join this query to another query to help you display the count in a form or report.

  3. #3
    braddy is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2013
    Posts
    2
    Thank you for your advise, I'll try it and get back to you.

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

Similar Threads

  1. Reports and Textboxes
    By jmenz in forum Reports
    Replies: 1
    Last Post: 03-25-2012, 08:38 PM
  2. Problem with sum of three textboxes.
    By SFC in forum Reports
    Replies: 3
    Last Post: 02-01-2012, 10:10 AM
  3. Dynamic Form, Dynamic labels/ captions?
    By JFo in forum Programming
    Replies: 15
    Last Post: 10-12-2011, 08:33 PM
  4. Formating Textboxes
    By desibabu90 in forum Forms
    Replies: 6
    Last Post: 08-02-2011, 07:48 AM
  5. #Name? errors with textboxes
    By jasonbarnes in forum Forms
    Replies: 3
    Last Post: 12-16-2010, 09:51 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