Results 1 to 2 of 2
  1. #1
    tpcervelo is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    28

    Form List Box

    My application is to import a dynamic Excel workbook (not a static name or location), run a number of queries against the imported data and create a table that will be uploaded (appended) to a ODBC linked table. I have all of this working manually so I know my queries are good and the upload completes without problem. My next goal is to put a Form wrapper around it so the user can 'push' the button and make it happen. The code behind my 'Select Excel' command button gets the Excel file (thanks to code written by Ken Getz that I found on an Access forum...much appreciated) and runs the queries and upload. My issues are as follows: I have a List Box based on a query that I want to display the final table for upload and stop to let the user confirm that it is ok to run the upload. The problem is that the List Box populates immediately on Form load rather than waiting until the queries are run...therefor getting previous contents of the query. Also, none of the Field names show. And I have no clue how to stop and ask the User for confirmation to run the final upload query.
    Any help or pointing me to samples or tutorials will be much appreciated.


    thanks...

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    the List Box populates immediately on Form load rather than waiting until the queries are run...

    **Its behavior is normal - that is just the way it is. You could implement it to be not visible on load, and then in your command button after your macro run command (or sequence of tasks) you could make it visible and also requery - so that it will have the new info....


    Also, none of the Field names show.

    **Don't understand what is meant on this point.

    hope this helps a little.

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

Similar Threads

  1. Search form with list boxes
    By scottay in forum Programming
    Replies: 15
    Last Post: 07-27-2010, 09:28 AM
  2. Form with multiple list
    By Donyk in forum Forms
    Replies: 2
    Last Post: 06-15-2010, 06:59 AM
  3. Replies: 3
    Last Post: 03-25-2010, 12:31 PM
  4. list available reports on form
    By farls in forum Forms
    Replies: 3
    Last Post: 10-09-2009, 07:24 AM
  5. list attachments in form
    By hawaiikim in forum Forms
    Replies: 0
    Last Post: 08-24-2009, 11:08 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