Results 1 to 3 of 3
  1. #1
    sherik is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2013
    Posts
    3

    query usage in a form

    Hi. Please help. I have created a form for a bus company. I have added 'from' combo box, where list of cities from which the bus goes, and then created 'to' combo box, which list the cities where the bus goes. I want 'to' combo box list only those 'to' routes which are defined in my table. I have used the following article but it didn't work http://office.microsoft.com/en-gb/ac...001173058.aspx . That is for instance I have bus routes from NY to Boston, but not to Miami. So, when I choose NY as 'from' destination, 'to' combo box will list only Boston and not Miami. Thanks in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Why didn't it work - error message, wrong results, nothing happens? Post attempted code for analysis. Show example of records used as the source for the comboboxes. Post the combobox properties RowSource, ColumnCount, ColumnWidths, BoundColumn.

    See if this tutorial helps http://datapigtechnologies.com/flash...combobox2.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Does any VBA code run? To allow Code to run in 2007/2010/2013 you need to declare the Folder as 'Trusted.'

    To trust your folder, click:

    1. Office Button (top left)
    2. Access Options (bottom of dialog)
    3. Trust Center (left)
    4. Trust Center Settings (button) on far right
    5. Trusted Locations (left)
    6. Add new location (button)
    7. Enter Folder Name
    8. Click on Okay

    Linq ;0)>

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

Similar Threads

  1. Database Usage Counter in Main Form
    By rkalapura in forum Forms
    Replies: 5
    Last Post: 04-15-2012, 09:02 PM
  2. .value usage...
    By Fish218 in forum Forms
    Replies: 2
    Last Post: 03-15-2012, 02:26 PM
  3. CPU Usage
    By worldwidewall in forum Access
    Replies: 9
    Last Post: 02-20-2012, 02:31 PM
  4. Form Usage
    By crowegreg in forum Forms
    Replies: 7
    Last Post: 08-01-2011, 06:16 AM
  5. Inventory usage
    By txrules in forum Database Design
    Replies: 1
    Last Post: 12-30-2010, 12:35 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