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 March 13th, 2008, 07:35 AM
Authorized User
Join Date: Feb 2008
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hewstone999
Default Check boxes to appear with Table Names

What I want is check boxes to appear on a form with the name of the tables.

i.e. I Currently have 3 tables (there are more tables in my database but for this example I will only use 3) - MPI_CORE, MPI_IDS and REFF_DR.

I want some code to put the table names as a check box i.e.


*please note [] = a check box

How could I do this using VBA?

Thanks in advance for your help :)

Old March 13th, 2008, 10:51 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

You can loop through your list of tables, and then change the labels on the text boxes as needed. Then you would need to remember those names in public or other variables, or in naming the check boxes as you create them, for any downstream processing.

You can either create and place the check boxes at runtime, or create with default information and set them to Visible = No, and then set them to Visible = Yes as you loop through the list of tables.

How much coding do you need?


Look it up at: http://wrox.books24x7.com

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loop over check boxes sams ASP.NET 1.0 and 1.1 Professional 5 July 17th, 2007 06:26 AM
Check Boxes Allan320 Access VBA 3 June 2nd, 2006 05:45 AM
using php to check file names fogofogo PHP How-To 0 February 20th, 2006 06:15 AM
Disable Check Boxes sweet4511 VB How-To 22 July 19th, 2005 03:53 PM

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