Results 1 to 3 of 3
  1. #1
    mike02 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    245

    query criteria

    hey all,



    Im searching from a combo box (3rd column) in subform:

    the combo box has three columns, two IDS, companyID, CompanyNAME, OrderID,

    I have it searching fine in the with the Company ID, with this:

    Code:
    [Forms}![frmorders].[Form]![cboselectcompany]
    how do i specify to now search on a different column?

    Cheers

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    [Forms}![frmorders].[Form]![cboselectcompany].column(x)


    where x starts at 0, the first column of any combo box or list box is 0 and increments by 1 from there.


    However, this doesn't always work (depends on how you are trying to apply it). If you're doing it within vb script it shouldn't be problematic, if you're doing it in a query it *may* be a problem depending on your version but you can try first and see what happens.

  3. #3
    mike02 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    245
    wouldnt work, but i got around it by creating a textbox, to then display the value of the OrderID, works now, thanks for thehelp

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

Similar Threads

  1. Replies: 4
    Last Post: 05-02-2013, 11:07 AM
  2. Replies: 5
    Last Post: 05-01-2013, 11:39 AM
  3. Replies: 5
    Last Post: 09-20-2012, 03:27 PM
  4. Replies: 5
    Last Post: 08-02-2012, 09:44 AM
  5. Replies: 1
    Last Post: 07-13-2011, 11:00 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