Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 7th, 2013, 06:31 AM
MMH MMH is offline
Registered User
 
Join Date: Jun 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Populate text boxes in form during loop

I have a form that executes code to find files and append them into the database. I have a line to update a text box with the current status but it does not update every loop. Do I need to pause the loop to force this update: extract from code

Code:
For TheCounter = 1 To FoundFiles.Count
    TheFileName = FoundFiles(TheCounter)
    DoCmd.DeleteObject acTable, TheLinkTable
    DoCmd.TransferText acLinkDelim, TheSpec, TheLinkTable, TheFilePath & TheFileName, True   
        DoCmd.OpenQuery TheQuery, acViewNormal, acEdit    
    Forms![frmMenu]!Text4.SetFocus
    Forms![frmMenu]!Text4.Value = TheCounter
     Next
Would like to see Text4 (yes bad name) updated during every loop

Last edited by MMH; June 7th, 2013 at 06:34 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
making a SAVE AS to save text boxes in a windows form VB2010 Express flexcom Visual Basic 2010 General Discussion 1 July 28th, 2011 08:36 AM
Loop over check boxes sams ASP.NET 1.0 and 1.1 Professional 5 July 17th, 2007 06:26 AM
Access VBA - Controlling Text boxes in a form Scripts82 Access VBA 4 February 8th, 2006 08:35 PM
Populate Access 2000 report text from form BradLee31 Access 1 September 16th, 2004 09:05 PM
Form Text Boxes mrideout BOOK: Beginning ASP.NET 1.0 8 September 3rd, 2004 12:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.