Results 1 to 4 of 4
  1. #1
    Jmccomas is offline Novice
    Windows 11 Office 365
    Join Date
    Mar 2023
    Posts
    4

    Form datasheet with drop box


    I have a form, in datasheet format, with the following colums; date, number, qty, item description, vendor. This represents orders for the day. At the end of the same row I would like a combo box that would look at "item description" and go to another table and bring back all the vendors that have the same item as the row where the combo box is. The other table has the following rows; item description, vendor. The combo box should be populated with vendors with items that are identical to the form.

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    Use a continuous form, add your combo box

    make a query to pull all vendors that use the item the cursor is on:
    qsVendorItemList:= select * from tVendorItems where [item]=forms!fMyForm!cboBoxItem

    bind this query to the combo box

  3. #3
    Jmccomas is offline Novice
    Windows 11 Office 365
    Join Date
    Mar 2023
    Posts
    4
    I am new to all of this. I have created the continuous form and binded the query to the combobox. I need help with the formula.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    What you describe is called 'cascading' or 'dependent' combobox - a common topic.

    Review:

    https://www.fmsinc.com/MicrosoftAcce...cascading.html

    https://stackoverflow.com/questions/...t-show-its-val
    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.

Similar Threads

  1. Replies: 40
    Last Post: 04-06-2020, 06:49 AM
  2. datasheet form drop box
    By DariusD in forum Forms
    Replies: 1
    Last Post: 12-28-2012, 08:17 PM
  3. Replies: 8
    Last Post: 08-26-2012, 11:11 PM
  4. Replies: 3
    Last Post: 11-29-2011, 07:01 AM
  5. datasheet view adding fields drop-down box
    By techexpressinc in forum Access
    Replies: 2
    Last Post: 09-09-2009, 05:35 AM

Tags for this Thread

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