Results 1 to 5 of 5
  1. #1
    tbrewer409 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2018
    Posts
    1

    I'm attempting to get certain fields to show in text boxes, still very new to access.


    Carrier.zipI have a combo box made with a list of furnace models. I can get a list of certain coils to show in a list box based on my selection of the furnace model, but cannot get any info to show up in a text box. Any help or criticism is greatly appreciated.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    If you want to filter a single record form on the listModel you pick ,then:

    Code:
    sub lstModel_afterUpdate()
    me.filter= "[model]='" & lstModel & "'"
    me.filterOn = true 
    end sub

  3. #3
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    try this in your textbox controlsource
    Code:
    =[FurnaceModelComboBox].[Column](2)
    You were not referencing the combobox column correctly.

    You should also consider getting rid of the Multi valued field. They tend to be a p.i.t.a.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    A few comments for consideration:

    -Every table in a relational database should have a Primary key
    -Access field names should not contain embedded spaces nor special characters eg "( )"
    -most developers will tell you, as moke123 did, avoid multi valued fields.

    Here is a link to database design and planning info that may be helpful to your project.
    I recommend you work through 1 or 2 of the tutorials from RogersAccessLibrary mentioned in the linked info.

    Good luck.

  5. #5
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,739
    Your database structure requires a classic Many-to-Many relationship setup.
    Many coils are associated with many furnaces and many furnaces are associated with many coils.

    Take a look at this. It replaces your database, having extracted the needed data from the original.
    The multivalue field is gone, replaced by a link table in a many-to-many relationship setup between coils and furnaces.

    Carrier-davegri-v01.zip

    The code in module basConvert does the multivalue field conversion and builds the linking table.
    It is included for information only as it should not be run again.
    Last edited by davegri; 06-10-2018 at 08:57 PM.

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

Similar Threads

  1. Unbound text boxes show #ERROR on data entry line
    By GraeagleBill in forum Forms
    Replies: 4
    Last Post: 01-07-2015, 12:44 AM
  2. Replies: 1
    Last Post: 07-30-2011, 03:21 PM
  3. Update Two fields (text boxes) Form
    By j2curtis64 in forum Forms
    Replies: 11
    Last Post: 07-06-2011, 08:43 AM
  4. merging fields, link, text boxes
    By compooper in forum Programming
    Replies: 1
    Last Post: 06-23-2011, 03:30 PM
  5. Creating Report using Text boxes & db fields
    By Nancy J. in forum Reports
    Replies: 13
    Last Post: 07-20-2009, 07:09 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