Results 1 to 3 of 3
  1. #1
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    DLookup Customer Ship method

    I cant figure this out! I have a combo that looks up the Customer Name. Control source is CustomerID
    1 bound column, 4 Column Count 0";2";0";0" 15 rows. Table/Query
    I have a bound field named ShippingMethodID which I want to be filled in with the Customers default Ship Via Method.


    I want to be able to edit/change the ship via if necessary so I dont want to do a CustomerID.Column(4) thing.

    SELECT DISTINCTROW Customers.CustomerID, Customers.CompanyName, Customers.TaxRate, Customers.ShipRate, Customers.CustShipVia FROM Customers ORDER BY Customers.CompanyName;

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    Well I don't think that the DLookup method is part of this discussion, at least as I understand your post.

    Have you tried putting in code in the AfterUpdate event of your Customer Name combo ? code that will enter the data info your Ship Via field. i.e. Me.ShipViaField = Me.ComboCustomerName.column(4)

    This will allow you to then edit Me.ShipViaField.

    As you note an unbound field whos control value is = Me.ComboCustomerName.column(4) would not be editable. But pushing the data into the bound field during the AfterUpdate event should be.

    Hope this helps,

  3. #3
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    That did not work. I tried several things with no success.These did not work! Tried Default setting for ShippingMethodID = CustomerID.Column(4) No Luck!

    Private Sub CustomerID_AfterUpdate()
    'DLookup("[CustShipVia]", "[Customers]", "[CustomerID]=" & Forms!OrderDetails!CustomerID) = Me.ShippingMethodID
    'Me.ShippingMethodID = Me.CustomerID.Column(4)


    I had the wrong data type so it would not worked, change to text and is working now.
    Last edited by burrina; 12-17-2012 at 10:30 AM. Reason: Solved the Problem.

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

Similar Threads

  1. Need some DLookup Help For Customer
    By burrina in forum Forms
    Replies: 3
    Last Post: 11-18-2012, 04:32 PM
  2. Replies: 1
    Last Post: 12-24-2011, 08:48 AM
  3. relation ship
    By sarab565 in forum Access
    Replies: 4
    Last Post: 12-02-2011, 01:53 PM
  4. Report missing ship dates and other info...
    By adam1986 in forum Access
    Replies: 8
    Last Post: 08-25-2011, 01:56 PM
  5. Report w/o multiple ship costs
    By stattech in forum Reports
    Replies: 1
    Last Post: 06-22-2010, 04:20 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