Results 1 to 3 of 3
  1. #1
    daleachilvers is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2012
    Location
    Oshawa, On, Canada
    Posts
    3

    Form pull down not working when form added as subform

    Hi there:


    I have a form that I created so that when you make a choice in the first pulldown it affects what is displayed in the 2nd pulldown. I used the following code:

    SELECT distinct [Symcor Activity].[Activity ID #],[Symcor Activity].[Symcor Activity] FROM [Symcor Activity] WHERE ((([Symcor Activity].[Service ID #])=[forms]![Benefit Projection Item]![Service ID #])) UNION select distinct null, null FROM [Symcor Activity] ORDER BY [Symcor Activity].[Symcor Activity];

    This code works for the form itself but if I insert as a subform "Benefit Projection Item" into another form called "Project Benefit form" it does not work. The error message seems to tell me that the form "Benefit Projection Item" does not exist.

    Any help would be appreciated.

  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,518
    The syntax changes when it's a subform:

    Forms Refer to Form and Subform properties and controls
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    cowboy is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2010
    Posts
    291
    Try
    [forms]![Projection Benefit Item]![Benefit Projection Item]![Service ID #]

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

Similar Threads

  1. Replies: 11
    Last Post: 02-13-2012, 10:06 AM
  2. Replies: 4
    Last Post: 05-17-2011, 06:56 AM
  3. Replies: 5
    Last Post: 03-17-2011, 06:21 AM
  4. Audit trail not working on form with subform
    By jpkeller55 in forum Access
    Replies: 52
    Last Post: 01-07-2011, 12:39 PM
  5. Replies: 1
    Last Post: 09-28-2009, 05:21 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