Results 1 to 5 of 5
  1. #1
    Mozencrath is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    11

    How do I...

    I am creating a DB for a company. The company has thousands of customers therefore when adding an order or RFQ for a customer, my dropdown box to select the customer has thousands of entries. I'd like to be able to have a button that says "Add Order" and then takes me to a form or query that has a datasheet view of all the companies with a record select button next to each where I can then just click on the company and it takes me to the order entry form/modal. Thanks! Im hoping this can be done without too much or any code.

  2. #2
    Rod is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Location
    Metro Manila, Philippines
    Posts
    679
    Yes, a datasheet has search and filtering capability built in that may be used to aid your identification of a customer. I don't know much about tables in datasheet view but a form view will 'point' to the current record (i.e. the one highlighted by the record selector) and make available all the values of the current record's fields (attributes). So it's easy to pass a customer key to your order/RFQ form.

    First you need to build a datasheet view of the customer information that you wish to see. Make all the fields Enabled = No and Locked = Yes; you don't want to be able to change data here! Add an unbound text box before all the customer fields and go to Arrange/Tab Order/Auto Order to force the datasheet to display it at the left hand side of the form. At this time check the form, that you can navigate up and down, that you can sort it, that you can filter it.

    When you're happy, repost and we'll take it a stage further.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    More than one way to approach this. For little or no code, open the Order form to New record or navigate to New record, select customer from combobox, enter other order information. If you set the Order form DataEntry property to Yes then the form will open only to New record. Anything else will require code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    Rod is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Location
    Metro Manila, Philippines
    Posts
    679
    June, I think Mozencrath's problem is that

    ... select customer from combobox, ...
    action.

    The company has thousands of customers therefore when adding an order or RFQ for a customer, my dropdown box to select the customer has thousands of entries.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    I use comboboxes with thousands of rows. With AutoExpand property set Yes, start typing the customer name or number and the combobox will fill with a matching value from the list. However, review http://allenbrowne.com/ser-32.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

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