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 21st, 2004, 10:03 AM
Caz Caz is offline
Registered User
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Caz
Default How to change the display control for Yes/No field

I have a table that is created by a make-table query.
One of the fields is a Yes/No data type, which is populated by using an Iif equation.
The user is given access to edit the table, specifically to set some of the "No" values to "Yes".
I have no problems with this, other than wanting to improve the useability to the user: currently the Yes/No field is displayed as
-1 or 0. I want to show it as a check box, so reducing the no. of clicks & keyboard strokes to one click.
I know how to set that by viewing the table in design mode, but don't want the user to do this. Instead, I want to set the display control for the field to "Check box" using VB code, but can't find out how to do it.

Any bright sparks out there know how to do this?
 
Old June 21st, 2004, 11:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

My advice is that you don't give users the ability to edit the table directly. That's a big no-no. Create a form that will have the fields you want them to edit, including that Yes/No field, and let them check/uncheck it THERE.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
The Totals Field doesn't change with Paging. sams ASP.NET 1.0 and 1.1 Professional 4 June 22nd, 2007 02:23 AM
how to change values in asp:bound field hertendreef ASP.NET 2.0 Professional 3 May 31st, 2006 08:45 AM
Change display when printing byrdley20 XSLT 1 April 17th, 2006 03:44 PM
change the 'From...' field in email Derek_05 Access VBA 1 February 15th, 2006 08:47 AM
How can I change a field name in mysql? scifo Beginning PHP 2 August 1st, 2003 09:41 AM





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