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 3rd, 2006, 10:42 AM
Registered User
 
Join Date: Nov 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default restrict entry to only one cell in a row

Hi All,

How do i restrict my entry to only one cell that is i have 4 columns and i want my users to give value for only one of the four columns. something like a radio button which lets us to select only one.

I suppose this is possible but i am not aware of how to do it.

can anyone help me with this.

Thanks in advance.

 
Old March 3rd, 2006, 02:14 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Normally you do this with one column and an option group. The option group stores a number in the column that represents the choice. You can make only one choice.

So if you have a column in your table called "Choice", the option group displays 4 choices (or however many you tell it): "A", "B", "C", and "D". If the user selects "A", for example, 1 is stored in the column.

This sort of works like a look up function. Then you need to build all of your queries and code using 1 for "A", 2 for "B" etc.

So remove three of the columns you have, use one column and an option group instead.

HTH

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT Table Row with repetitive first cell the cause XSLT 5 July 3rd, 2007 01:29 PM
Parsing and Removing CSV values in row cell. peryan77 SQL Server 2000 5 February 2nd, 2006 03:48 PM
Row Color depending on if cell value same as prev case23_69 BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 February 17th, 2005 01:37 PM
Lose cell Text when editing cell in VSFlexGrid 6 bobcratchet VB How-To 0 July 30th, 2004 09:32 AM
insert new row and merge with existing merged cell funkyProgrammer Excel VBA 1 February 9th, 2004 10:58 AM





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