Results 1 to 2 of 2
  1. #1
    warren0127 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    69

    Combobox error trying to attemp to build a cascading combobox from query form.

    I followed many examples and still get an error. When I go to make a selection from a second dropdown box, its giving me the following error:



    "This expression is typed incorrectly, or it is too complex to be evaluated. For example, a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables".

    My original form was created from a query because I am going to use these subforms in a tabbed form. I tried to follow many examples of building cascading combo boxes.


    I have a Customer Organization, Sub Organization, and Third sub organization tables (right now - I am only using the first two). I am trying to get it to where the second combo box only displays the suborganizations from the original first Customer Organization combo box.

    In the Suborganization combobox properties, I opened up the the Row Source button to build a query statement. I added the Sub organization table. I included the "Customer Organization" field from the suborg table, and I included the "Sub organization" field from the suborg table. Under the Customer Organization field, I put a "where" in the totals column. My expression I used was [Forms]![frmMain]![cmbCustomerOrg] similar to an example found in another thread. I've also tried doing it a harder way through a video I followed and still had the same issue..

    Please let me know what I am doing incorrectly here. I've attached a screenshot of the Query Builder under the "Sub organization" combobox.

    EDIT: I have tried to follow even basic examples. Perhaps it is because I am not establishing my relationships as PKs/FKs? The tables I am using have lookups in each. For example, in the suborg table, I have all suborgs, and created a lookup to the main org table so each main org displays next to the sub org.

    Thank you,
    - Warren
    Attached Thumbnails Attached Thumbnails cmberror2.jpg   cmberror.png  
    Last edited by warren0127; 05-14-2015 at 05:13 AM.

  2. #2
    warren0127 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    69
    Also - for the row source expression in the suborg combobox properties box, its showing the following:

    SELECT CustomerSubOrg.SubOrg FROM Customers INNER JOIN CustomerSubOrg ON Customers.CustomerID = CustomerSubOrg.CustomerOrg WHERE (((CustomerSubOrg.CustomerOrg)=[Forms]![frmTransitionQuery].[cmbCustomer]));


    I have also attached the key relationships between the three tables - I had to create them as lookups in SharePoint because Access wont let you use the lookup wizard if you have linked tables. See attached - thanks!
    Attached Thumbnails Attached Thumbnails cmberror3.png  

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

Similar Threads

  1. Replies: 1
    Last Post: 01-16-2015, 09:28 AM
  2. Replies: 7
    Last Post: 11-11-2014, 06:10 PM
  3. Editing a Form with a Cascading ComboBox
    By MercyKiller101 in forum Forms
    Replies: 2
    Last Post: 12-12-2013, 03:03 AM
  4. cascading combobox
    By ashu.doc in forum Forms
    Replies: 7
    Last Post: 09-08-2012, 10:39 AM
  5. Replies: 0
    Last Post: 08-24-2010, 06:38 PM

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