Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2015
    Posts
    12

    auto-fill help

    Hi everyone,


    Hoping that someone can help me as I am struggling to get my database to auto-fill. I basically want my raw material code (RM_CODE) to populate the following fields: "INGREDIENT", "RM MANUFACTURER", "RM SUPPLIER".


    I have named my fields the following:
    txtingredient
    txtrm_manufacturer
    txtrm_supplier
    cborm_code


    I have tried:
    Private Sub cboRM_Code_AfterUpdate()


    Me.txtINGREDIENT = Me.CBORM_CODE.Column(1)
    Me.txtRM_MANUFACTURER = Me.CBORM_CODE.Column(2)
    Me.txtRM_SUPPLIER = Me.CBORM_CODE.Column(3)
    End Sub


    any help would be appreciated!


    thx

  2. #2
    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
    So what is it doing/not doing? Column(X) is Zero-based, with the first Field being Column(0), the second Column(1) and so forth.

    Does any code work? Access 2007 and later requires that the Folder the file resides in being declared as 'Trusted,' in order for code to run.

    Linq ;0)>

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    These two threads should be merged.
    https://www.accessforums.net/access/...ill-56292.html

  4. #4
    Join Date
    Nov 2015
    Posts
    12
    Thanks for the reply. I can see the columns in the drop down list but when I select one it will not populate.

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

Similar Threads

  1. Auto Fill
    By Scotty J in forum Forms
    Replies: 10
    Last Post: 11-21-2011, 10:08 AM
  2. Auto Fill
    By Phoenyxsgirl in forum Forms
    Replies: 28
    Last Post: 10-12-2011, 05:48 PM
  3. Auto-fill
    By sidewayzalex in forum Database Design
    Replies: 49
    Last Post: 09-14-2011, 11:12 AM
  4. Auto Fill
    By Kerrydunk in forum Forms
    Replies: 16
    Last Post: 04-26-2011, 12:15 AM
  5. Auto-Fill
    By sophiecormier in forum Programming
    Replies: 3
    Last Post: 10-02-2010, 08:29 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