+ Reply to Thread
Results 1 to 3 of 3

Query string to resolve dependant combo box in subform

  1. #1
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Query string to resolve dependant combo box in subform

    Good morning fellow Access devs,

    On my Mainform is a Subform with two combo boxes: Combo A and Combo B. Combo B is dependant on the selection made in Combo A.

    My sql string as follows.

    SELECT Table.Field1 AS Expr1, Table.Field2 AS Expr2
    FROM Table
    WHERE (((Table.Field1)=[Forms]![MainForm]![SubForm].[Form]![ComboBox A]))
    ORDER BY Table.Field1;

    When I run this from the query (i.e not from the main form), I enter the correct paramenters and the query returns the correct information.

    When I run this from the mainform, I select the value in Combo A (which runs a requery for Combo B). Combo B however, is not populating as expected.

    What could be the problem?

    I've tried: WHERE (((Table.Field1)=[Forms]![SubForm]![ComboBox A])). This works on another project, but i can't see why it wouldn't on this one.

    Any suggestions?

  2. #2
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Re: Query string to resolve dependant combo box in subform

    Good afternoon fellow Accessians,

    While there was no answer to this question, it turns out that the issue was with the bound column of Combo box A.

    The form is now working correctly as intended, and I'm closing off the issue as solved.

    Cheers

  3. #3
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Re: Query string to resolve dependant combo box in subform

    Good afternoon fellow Accessians,

    While there was no answer to this question, it turns out that the issue was with the bound column of Combo box A.

    The form is now working correctly as intended, and I'm closing off the issue as solved.

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Main Form Multiple Combo Boxes Control Subform textboxes
    By jvbeats in forum Access Tables & Databases
    Replies: 0
    Last Post: 02-01-2013, 01:36 PM
  2. [SOLVED] Access Database Search filter for subform based on query
    By carden2 in forum Access Tables & Databases
    Replies: 1
    Last Post: 10-07-2012, 11:16 PM
  3. set .Visible = True on Subform, From Another Subform
    By Whizbang in forum Access Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2011, 04:51 PM
  4. [SOLVED] cascade combo in subform
    By Richard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2005, 05:55 PM
  5. Replies: 1
    Last Post: 06-08-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1