Results 1 to 3 of 3
  1. #1
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232

    Event Code Not Working

    I have the following : it all works for the field for ESTPAYMENTS I can not get the field to auto field when the change is made.
    maybe something I didn't fix correctly
    thank you Angie

    EVENT FOREquiptment Field
    Private Sub Equiptment_Change()
    Me.Heat_Pump_Model= Me.Equiptment.Column(3)
    Me.Furance_Model= Me.Equiptment.Column(4)
    Me.Thermostat= Me.Equiptment.Column(12)
    Me.Heater_Kit_Model= Me.Equiptment.Column(6)
    Me.Coil_Model= Me.Equiptment.Column(5)
    Me.Information= Me.Equiptment.Column(9)
    Me.Brand =Me.Equiptment.Column(13)
    Me.Financed_Price= Me.Equiptment.Column(10)
    Me.EstPayments= Me.Equiptment.Column(15)


    Me.Equipt_Cost= Me.Equiptment.Column(11)
    Me.Cash_Price= Me.Equiptment.Column(14)
    Me.Proposal= DLookup("Description", "[systems query]", "ID =" & Me.Equiptment.Column(1))
    End Sub

    ROWSOURCE for EQUIPTMENT
    SELECT[Systems Query].TON, [Systems Query].SEER, [Systems Query].STAGE, [SystemsQuery].[HP Model], [Systems Query].[Furance Model], [Systems Query].COIL,[Systems Query].[Heater Kit Model], [Systems Query].[TXV Model], [SystemsQuery].DESCRIPTION, [Systems Query].Information, [Systems Query].FinancedPrice,[Systems Query].PRICE, [Systems Query].THERMOSTAT, [Systems Query].Brand,[Systems Query].CashPrice, [Systems Query].EstPayments FROM [Systems Query]ORDER BY [Systems Query].TON;

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Make sure the Column Count property of the combo is 16.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Not sure what your question is but in your row source sql you need a space after SELECT and another before ORDER

    Also is the Column(1) field a number?

    Finally, suggest you change your code to the After Update event so it runs once after you've finished
    The Change event runs after each keystroke is entered
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

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

Similar Threads

  1. Replies: 2
    Last Post: 05-14-2017, 10:07 AM
  2. Using Event Code to Disable another Event Code
    By mortonsafari in forum Forms
    Replies: 1
    Last Post: 08-29-2016, 11:09 PM
  3. Replies: 4
    Last Post: 10-12-2015, 12:16 PM
  4. Replies: 2
    Last Post: 01-15-2014, 07:57 PM
  5. Replies: 7
    Last Post: 05-28-2013, 09:11 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