Results 1 to 2 of 2
  1. #1
    char is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    29

    subform combo box

    Hi,

    I posted a few days regarding using a combo box to select a certain record on a web based database.

    I did this using the macro:

    SetFilter=[Forms]![Formname]![cbobject]
    Requery

    This worked perfectly. I then want to add this form to another as a subform.

    So my main form would be [Test details]... Test ID, Test Date, Test Attachment
    Subform would be [test results] with fields... Test ID (autovalue from main form) Weld ID (selected from combo box on this subform) and Pass/Fail result which the user would self type.



    When I used the combo box on the form before I pull it accross into [Test Details] It works perfectly. But when it is a subform the error message reads:

    You either have an error in your expression or you have attempted to use an undeclared parameter. Check the expression for errors or enter the parameter '[Weld_ID]' in the Query dialog.

    Then a query box pops up asking me to enter weld ID.. not sure why this is happening could anyone help?

    Thanks

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    is the filter you're applying going against the WELD_ID field?

    if so you may need to modify the query running the form to add a parameter value (even though your query may show it in some instances you have to, for lack of a better word, 'declare' a field as a parameter).

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

Similar Threads

  1. Combo box with subform
    By Jerseynjphillypa in forum Forms
    Replies: 20
    Last Post: 04-19-2012, 09:33 AM
  2. Replies: 33
    Last Post: 01-13-2012, 07:44 AM
  3. Replies: 5
    Last Post: 01-02-2011, 10:09 AM
  4. Combo box requeries a subform
    By techaddiction7 in forum Database Design
    Replies: 0
    Last Post: 06-07-2010, 11:12 AM
  5. Replies: 0
    Last Post: 08-17-2008, 12:19 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