Results 1 to 4 of 4
  1. #1
    trident is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    141

    Dropdown List Box-Memo List

    I created a drop down list box where the following are stated:

    Brand - Text
    Model - Text
    Description - Memo

    The information save on another table is only the model, the Brand should only appear on screen or printed as well as for the description.
    the form shows a follow:



    Model - Dropdown List Box
    Brand - =Model.column (1)
    Description - =model.column(2)

    my problem is that the description is not showing in the Dropdown, for this to populate the description.
    I have seen some explanations that a MEMO cannot be included in the Dropdown List Box.

    How can I include the description to the form or in a report.

    Hope you can help me.

    Trident

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,526
    Don't use memo.
    the query that controls the combo should have 2 columns; prod,descr.
    the combo box property COLUMNS=2
    COLUMNWIDTHS=1;3. (Or adjust to your text lengths)

  3. #3
    trident is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    141
    Dear Ranman256,

    The problem here is that the Description which is a MEMO type is arranged as how it will look like when it is printed.

    is there any other way to show the memo in the form even if it does not appear in the Drop Down List Box?

    How can I call the Description from another table by used unbound text box.

    Again, thank you for your assistance.

    Trident

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    It's not that you can't use a Memo Field in a Combobox...it's just that they will always be truncated to the first 265 characters of the Field! Instead, you need to use the DLookup function, using Criteria to tell the Access Gnomes which Record to pull this data from:

    Where the First Field/Column in the Combobox is

    • A Unique Identifying Field for the Record (such as an ID Number)
    • The Bound Field for the Combobox

    and where

    • UniqueIdentifier is the name of the Field in the Table

    ' If the UniqueIdentifier is Text
    Code:
    Private Sub ComboBoxName_AfterUpdate(Cancel As Integer)
      Me.MemoFieldTextBox = DLookup("MemoFieldName", "TableName", "[UniqueIdentifier]= '" & Me.ComboBoxName & "'")
    End Sub


    ' If the UniqueIdentifier is Numeric
    Code:
    Private Sub ComboBoxName_AfterUpdate(Cancel As Integer)
      Me.MemoFieldTextBox = DLookup("MemoFieldName", "TableName", "[UniqueIdentifier]= " & Me.ComboBoxName)
    End Sub


    Replacing MemoFieldTextBox with the actual name of your description Textbox. This assumes that the Bound Column of the Combobox is the UniqueIdentifier...which I believe, from your post is 'Model.'

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. lookup dropdown list
    By LaughingBull in forum Access
    Replies: 9
    Last Post: 10-16-2015, 12:59 PM
  2. Add to the dropdown list
    By tanyalee123 in forum Forms
    Replies: 1
    Last Post: 11-13-2013, 01:18 PM
  3. Dropdown list
    By imintrouble in forum Access
    Replies: 2
    Last Post: 01-20-2012, 08:09 AM
  4. Dropdown list
    By stratack in forum Access
    Replies: 1
    Last Post: 07-25-2011, 06:58 AM
  5. Set up a dropdown List
    By asherbear in forum Access
    Replies: 2
    Last Post: 06-24-2010, 06:45 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