Results 1 to 6 of 6
  1. #1
    dreday's Avatar
    dreday is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    58

    Apparently the most difficult Access Web Database Question EVER!

    I have searched for 3 days trying to find an answer to this and either I'm not phasing it correctly, it is simply impossible, or I'm the only person in the history or histories to ever try this. Access 2010 web database....



    Combo box with a record source of a very simple query, something like:

    Select clientID from tblClients

    Instead of selecting the whole table, I would like to restrict the values by a value that I pass to the query either by macro or another field within the same form or a parent form, something that would look like this:

    Select clientID from tblClients where agency = *[Passed value]*

    Nothing works,
    I've tried programmatically setting the Filter property of the query...ERROR
    Modifying SQL code to reference a tempvar and a localvar....ERROR
    I can't even reset the control source to a custom SQL

    Is there anyway to solve this?

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    I'm not familiar with the web aspect of Access (frankly, I advise people to avoid using Access for web requirements) but your issue seems to be independent of that fact.

    Where would your passed value be coming from? If it is another form control (and I assume you still have access to VBA), you can set the one of the event properties to
    Me.comboBoxName.Rowsource = "SELECT clientID FROM tblClients WHERE agency = " & Me.ControlSourceWithAgencyName

  3. #3
    dreday's Avatar
    dreday is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    58
    Nope, no VBA in web databases, the saga continues

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    php/MySQL is your friend

  5. #5
    dreday's Avatar
    dreday is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    58
    Not an option so no help there

  6. #6
    dreday's Avatar
    dreday is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    58
    So there's no way to do this. Access won't let you set the control source of the combo box from the web. My workaround was to bind a form to a query and explicitly type a parameter so that when the sub form was opened it would restrict the values. Hope this helps anyone encountering the same issue.

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

Similar Threads

  1. Difficult Query!
    By pastormcnabb in forum Queries
    Replies: 2
    Last Post: 04-09-2013, 09:40 PM
  2. A difficult taskin Access
    By eman in forum Access
    Replies: 5
    Last Post: 10-05-2010, 11:01 AM
  3. Creating a difficult qry
    By Aubreylc in forum Queries
    Replies: 8
    Last Post: 02-11-2010, 12:13 PM
  4. A Difficult One...(I Think)
    By NickyThorne1 in forum Access
    Replies: 0
    Last Post: 01-31-2009, 07:56 AM
  5. Difficult problem
    By francisca_carv in forum Access
    Replies: 0
    Last Post: 11-19-2008, 05:50 PM

Tags for this Thread

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