Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    ZandyRox is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    34

    Access Form Combo Box

    I have a query (qryQuickSheet) that has the following command: [Forms]![frmProjectSearch]![proj_name] for the field "proj_name"



    I have frmProject Search that has proj_name as a combo box. I have the combo box to open frmQuickSheet (basically the data for qryQuicksheet) after update.

    When I update the combo box, I get a enter parameter value dialogue box. The combo box should prevent this from happening.

    How do I make the dialogue box disappear?

    Please advise.


    Zandy Rox

  2. #2
    thebigthing313 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    119
    Are you saying you're using a combobox to open a SUBform frmQuicksheet, who's parent is frmProjectSearch?

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Can you post the SQL for your qryQuickSheet? What is the Rowsource for your combo and what is the Bound Column property?

  4. #4
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    What parameter is the dialog box asking for?

    Try renaming the combo box from 'proj_name' to something else - it's possible that Access is getting confused with a query field and the combo box with the same name.

    What is the code in the combo box after update event?

  5. #5
    ZandyRox is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    34
    I'm using the combobox to open frmQuickSheet which is based on query qryQuickSheet.

    frmProjectSearch is a form from scratch. The combo box pulls from a list of project names.

  6. #6
    ZandyRox is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    34
    SELECT tbl_projects.proj_num, tbl_projects.proj_name, tbl_projects.proj_srvc_aact, tbl_projects.proj_jurisdiction, tbl_milestones.stage, tbl_milestones.status, tbl_projects.proj_category
    FROM tbl_projects LEFT JOIN tbl_milestones ON tbl_projects.ID = tbl_milestones.proj_id
    WHERE (((tbl_projects.proj_name)=[Forms]![frmProjectSearch]![proj_name]));

  7. #7
    ZandyRox is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    34
    Its an embedded Macro to openform frmQuickSheet

  8. #8
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by ZandyRox View Post
    Its an embedded Macro to openform frmQuickSheet
    Is the macro closing frmProjectSearch?

  9. #9
    ZandyRox is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    34
    no. the macro opens frmquicksheet

  10. #10
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    The combo properties may shed some light on the issue.

  11. #11
    ZandyRox is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    34
    Can you open the link below to view?
    Click here to view

  12. #12
    ZandyRox is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    34
    Just following up. I sent the database in the previous posting. Any ideas?

  13. #13
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    What is the Rowsource for your combo and what is the Bound Column property?

  14. #14
    ZandyRox is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    34
    Row Source: SELECT [tbl_projects].[ID], [tbl_projects].[proj_name] FROM tbl_projects ORDER BY [proj_name];

    Bound Column: 2

  15. #15
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I believe the solution is in post #4. You need to figure out what the names of your controls are and adjust your SQL in the query to look at the correct control name.

    Furthermore, the value of your combo may be Null if the Macro is executing before the Value property is getting updated. So also make sure that your are using After Update as your event handler.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 10-30-2012, 10:29 AM
  2. Replies: 1
    Last Post: 09-03-2012, 06:53 AM
  3. Replies: 3
    Last Post: 01-28-2011, 11:42 AM
  4. Access form combo box value changing
    By justrizlee in forum Forms
    Replies: 1
    Last Post: 12-22-2010, 08:56 AM
  5. Access 2007 - Form Combo Box
    By losttrail in forum Forms
    Replies: 26
    Last Post: 09-10-2010, 09:32 AM

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