If check box changes

Access 2003

On my subform I have 3 checkboxes  format Yes\No
BBAll - control source BBAll default Yes
BB1 - control source BB1 default No
BB2 - control source BB2 default No
and 2 textboxes
TextBB1 - control source =DLookUp("[BB1]","[t000Facts]","[UnitID] =" & 
[UnitNo])
TextBB2 - control source =DLookUp("[BB2]","[t000Facts]","[UnitID] =" & 
[UnitNo])

If TextBB1 is null then BB1.enabled=false
If TextBB2 is null then BB2.enabled=false
this means if TextBB1 is empty then the BB1 checkbox selection is 
disabled(same for BB2).

cannot have BBAll=yes if BB1 or BB2= yes
and cannot have BB1 or Bb2 =yes if BBAll is checked

so  here is what I need 
If user wants to change from BBAll to BB1 or BB2 or BB1 and BB2, then have 
BBAll  auto uncheck.
If user wants to change from BB1 or BB2 or both to BBAll then BB1 and BB2 
will auto uncheck.
Should not have BBAll checked if any other checkbox is checked, and if any 
other checkbox is check then BbAll should be unchecked.
Oh my...
I'm so stuck!!
-- 
deb
0
Utf
4/7/2010 5:18:01 PM
access 16762 articles. 3 followers. Follow

1 Replies
847 Views

Similar Articles

[PageSpeed] 54

If TextBB1 is null then BB1.enabled=false else BB1.enabled=true
If TextBB2 is null then BB2.enabled=false else BB2.enabled=true

Then, based on what the user clicks, add these code entries:

on the BB1_Click event:

If Me.BB1 Then BBAll = False Else BBAll = True
If Me.BB2 Then BBAll = False

on the BB2_Click event:

If Me.BB2 Then BBAll = False Else BBAll = True
If Me.BB1 Then BBAll = False

on the BBAll_Click event:
If Me.BBAll Then 
   Me.BB1 = False
   Me.BB2 = False
Else
   If Me.BB1.enabled OR Me.BB2.enabled Then
      If (Not Me.BB2) AND (Not Me.BB1) Then msgbox "Be sure to select BB1 or 
BB2"
   Else
      Me.BBAll = True
      Msgbox "BBAll must be checked because BB1 and BB2 are not able to be 
checked."
   End If
End If

This is untested, and the control names may be different from yours, so work 
with it and let us know.

-- 
Daryl S


"deb" wrote:

> Access 2003
> 
> On my subform I have 3 checkboxes  format Yes\No
> BBAll - control source BBAll default Yes
> BB1 - control source BB1 default No
> BB2 - control source BB2 default No
> and 2 textboxes
> TextBB1 - control source =DLookUp("[BB1]","[t000Facts]","[UnitID] =" & 
> [UnitNo])
> TextBB2 - control source =DLookUp("[BB2]","[t000Facts]","[UnitID] =" & 
> [UnitNo])
> 
> If TextBB1 is null then BB1.enabled=false
> If TextBB2 is null then BB2.enabled=false
> this means if TextBB1 is empty then the BB1 checkbox selection is 
> disabled(same for BB2).
> 
> cannot have BBAll=yes if BB1 or BB2= yes
> and cannot have BB1 or Bb2 =yes if BBAll is checked
> 
> so  here is what I need 
> If user wants to change from BBAll to BB1 or BB2 or BB1 and BB2, then have 
> BBAll  auto uncheck.
> If user wants to change from BB1 or BB2 or both to BBAll then BB1 and BB2 
> will auto uncheck.
> Should not have BBAll checked if any other checkbox is checked, and if any 
> other checkbox is check then BbAll should be unchecked.
> Oh my...
> I'm so stuck!!
> -- 
> deb
0
Utf
4/7/2010 6:49:01 PM
Reply:

Similar Artilces:

Change links to hyperlinks in a workbook?
I have 5 Income Statement sheets in a workbook. The first sheet is an Income Statement summing four departments (listed by columns). Column B has Dept 1 data, column C has Dept 2 data, etc. ALL data on this sheet is linked (referenced) to the other four sheets which are the individual departments. I know I can set hyperlinks one at a time, but is there a way for me to have each of those links (every cell containing the data from the other four sheets) become hyperlinks? If I have to add another sheet that mirrors the summary sheet but has hyperlinks, that would be fine. I am just ...

Change of recipient/sender display name
Hi All, Environment :- Windows 2003 x64 with exchange 2007 (All in one role) Outlook client :- 2003, 2007 We have created a list of mail contacts (which under GAL) in exchange 2007, these mail contacts are associates with external email address, each of contact has a naming standard for display name, for example, display name is HD Finance Manager, external email address is fin_manager@hdemea.com I want to configure outlook client to show the display name according to mail contacts whenever the email address is match to mail contacts list (GAL), for example, an email sent from the email a...

Change <value> in outlook
We Have Exchange 2003 sp2 and outlook 2003 sp2. I have renamed 2 AD accounts. Changed all display names, accounts name etc with the 2 accounts. When users open outlook and send to renamed account they see account name <oldaccountname> in the autocomplete list. I have cleared nk2 files in profile , but it still shows newaccount <oldaccountname> in drop down box. Is there a way to edit the <oldaccountnam> value of the renamed account? I tried the same thing with a freshly loaded PC. with the same result. Thanks You can delete the nickname files. -- Ed Crowley MVP - E...

changing the cell information #2
Hi I have files I tried to change the cell information to another cel that have to be the blank for a row that contains director name in cel A and for the movie titles I have to have director names instead of th title names.Please help me, the data in cell B sholuld have to be, A 1 D:B.Jane 2 T:Back to the future 3 T:Aliens 4 T:X-files 5 D:Adam Mathew 6 T:Core 7 T:Titanic B 1 (empty) 2 D:B.Jane 3 D:B.Jane 4 D:B.Jane 5 (empty) 6 D:Adam Mathew 7 D:Adam Mathew thanks -- Message posted from http://www.ExcelForum.com ...

Change default font format in Excel
I have an existing workbook with cell text entries in regular black font. I want to make a number of additional entries in various cells in this workbook, and I want all my text entries to be a different font format (bold, red). Is there a way to do this automatically without highlighting each entry I make and manually changing the cell format? Thanks. Michael, Copy the code below, right-click on your sheet tab, select "View Code" and paste the code in the window that appears. HTH, Bernie MS Excel MVP Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Cou...

Reconcile checking account
Money 2007. After I reconciled my checking account, and made a balance adjustment, I found a transaction that should be included in the reconcillation. Is there a way to go back and re-do a reconcillation? In microsoft.public.money, john9210 wrote: >Money 2007. After I reconciled my checking account, and made a balance >adjustment, I found a transaction that should be included in the >reconcillation. Is there a way to go back and re-do a reconcillation? If all of the transactions that should have been marked as 'R' were marked except for the extra one, you can select ...

Changing Interface OWA (exchange 2003)
Not sure if you all remember but back in the Exchange 5.5 days we use to be able to go onto a site and put in the username of the person mailbox you want to access, then a windows pop up would come up asking you for your credentials. I was wondering if that is still possible to do that in Exchange 2003? If so how can that be done? Configure Forms-Based Authentication (FBA). -- Ed Crowley MVP - Exchange "Protecting the world from PSTs and brick backups!" "John" <nospam@comcast.net> wrote in message news:evIllMndHHA.596@TK2MSFTNGP06.phx.gbl... > Not sure...

DPM forces a Consistency Check on data
Hi all, I have a DPM 2007 SP1 server in one office ? and are trying to backup data in another office, connected by T1 (1.54Mbps) link. It works, but every time there is an issue ? DPM forces a Consistency Check on XGB( >100) of data, which takes 5-7 days to complete. can any tell abt this. thanks in advance gopal Submitted via EggHeadCafe - Software Developer Portal of Choice Useful ASP.NET Exception Engine http://www.eggheadcafe.com/tutorials/aspnet/52012346-36db-4a47-ac61-8b9c9b4ce9a0/useful-aspnet-exception.aspx Hi Gopal, Can you please eloborate on "Ev...

Check correction patch for Microsoft Windows
--jgfiyombh Content-Type: multipart/related; boundary="kgqnlddpakhbjo"; type="multipart/alternative" --kgqnlddpakhbjo Content-Type: multipart/alternative; boundary="pdizbrrdstws" --pdizbrrdstws Content-Type: text/plain Content-Transfer-Encoding: quoted-printable MS Consumer this is the latest version of security update, the "October 2003, Cumulative Patch" update which resolves all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express as well as three new vulnerabilities. Install now to maintain the securit...

Change License / Company name
Hi, we tried CRM 1.2 with the MSDN license key. Now my company bought a 25 user Proffesional Suite license and I want to change the key on the production server. Is there an easy way to do this?? The only solution I see, is via the Data Migration Framework. Erik. How about the re-deploy tool? "Erik" <none> wrote in message news:u0SXdbXlEHA.3452@TK2MSFTNGP15.phx.gbl... > Hi, > we tried CRM 1.2 with the MSDN license key. Now my company bought a 25 > user > Proffesional Suite license and I want to change the key on the production > server. Is there an easy wa...

gp10 change clients pointing to different server
In version GP 10 I have clients pointed to a test server. When production server is ready what do i do to point the clients to the production server e.g. GPServer. Would I change the odbc connection? Or Rerun the client installs? Any help is appriciated. Thank YOu As long as your production server has THE SAME level service pack as your clients and THE SAME third party products all you need to do is repoint your ODBC to the production server. Best regards, -- MG.- Mariano Gomez, MIS, MCP, PMP Maximum Global Business, LLC http://www.maximumglobalbusiness.com "2020" wro...

Changing the Selection Fields in a Combo Box
Hi, I've created a Combo Box using the Controls Wizard. In creating the control, I specified that my unique value to be stored in the table is an ID. When the user views the selection options in the Combo Box, I'd like to have the ID field hidden and only see the text values, while still storing the ID in the appropriate column. This is probably a second question. Also, when the user views a form that has been populated, I'd like them to see the actual textual values on the form, as just the stored ID value. Is that possible to do with the one Combo Box or is that...

Contact looses Post Office Box field when synchronized to Outlook
When I sync contacts from CRM 4.0 to Outlook, the Post Office Box field from the contact gets empty. Anyone has the same issue? ...

Background changes conditionally
Hi all, I have a spreadsheet that shows the floor plan layout of my call centre. On each desk, the desk number and identity are displayed. I would like to colour the background for those pcs that are on the same subnet. I have a sheet called data - it contains Table Number, Desk Number, PC ID, IP Address. How could I get it to change the background colour if the pc is on subnet 162, and set a different colour for those on subnet 167 any ideas? -- PeterG ------------------------------------------------------------------------ PeterG's Profile: http://www.excelforum.com/member.p...

APAY Frequency changes mysteriously
Has anyone noticed that if, for example, you set up an APAY bill monthly, that all of a sudden the next pay date is many months later? It will be cruising along fine, sending bills monthly via MSN Billpay automatically and then one day I go to look at BILLS AND DEPOSITS and some of the autopay's that should be due next month say something crazy like it wont be paid until three months from now or even Jan of next year. I have to cancel the autopay and resubmit it with the proper information. This has happened to me several times in Money2003 on XP... p.s. I tried out the archive feature t...

Locking cell color while allowing data changes in cell
In excel 2000, I created an attendance worksheet for my classes.(Alphabetized names down left vertical column. Dates across top of horizontal row.) I added a different color to all cells in every other row to make for easier reading of each student's name and absences. Every other row stays with a white background. My question: I wondered if it was possible to lock row colors while allowing data to change on top of them. If a new student is added to my class in alphabetical order, the alternating color pattern is often lost. It is a pain to rechange row and cell colors. Any shortcut ...

OWA & "User must change password at next logon"
Current Environment: Running EX2K3(SP2), and using OWA as the ONLY option to get e-mail; using certificates (https:\\owa.domain.com\exchange) & forms based Authentication. Problem: I create a NEW user in AD; e-mail enable it, and select "User must change password at next logon". Now when the user tries to log in (VIA OWA) s/he is not prompted to change the password / it won't even log them in. It use to work with our old exchange 2000 environment, where it gave them the opportunity to change the password at sign on. Answer: ? There is one property in MetaBase: ...

Changing default Print copies
Hi, I have a workbook that has a worksheet with default printing copies of 3. Even when I go to page setup and change the number of copies to print to 1 it will automatically revert to 3 the next time I bring up the print dialog. I have also looked through the VBA editor at the worksheet for any oddities and have found none. Does anyone know how to change this permanently? Thanks in advance. Pach >Even when I go to page setup and change the number of copies to > print to 1 it will automatically revert to 3 the next time I bring up > the print dialog. Look at the defaults for you...

stop automatically changing formula!
i have a countif function COUNTIF(Locking!I16:I40,"f") when i copy this and paste it to the next cell, the formula automatically change to COUNTIF(Locking!J16:J40,"f") How do I stop it from changing column I to J?!?!?! thanks. Caryn, =COUNTIF(Locking!$I$16:$I$40,"f") or =COUNTIF(Locking!$I16:$I40,"f") HTH, Bernie MS Excel MVP "caryn" <caryn.tan@gmail.com> wrote in message news:d7n4u3$hgi$1@avnika.corp.mot.com... > i have a countif function > COUNTIF(Locking!I16:I40,"f") > when i copy this and paste it to the nex...

HOW DO I COPY FORMULA WITHOUT CHANGING CELL REFERENCE
My cell c1 contains the formula b1-a1.when i copy this formula to cells d1 and e1 the cells d1 and e1 have the following formula : d1=c1-b1 e1=d1-c1 but i want the following d1 should be b2-a2 and e2 should be b3-a3 how do i do this? One way... In C1 enter & copy across: =INDEX($A:$A,COLUMN()-COLUMN($C$1)+1)-INDEX($B:$B,COLUMN()-COLUMN($C$1)+1) anantth wrote: > My cell c1 contains the formula b1-a1.when i copy this formula to cells d1 > and e1 the cells d1 and e1 have the following formula : > d1=c1-b1 > e1=d1-c1 > > but i want the following > d1 should be b2-...

unapply checks
hello, I have a client that applied checks to a wrong customer, how do I unapply it and apply it to the correct customer. Thanks, Scott This is a multi-part message in MIME format. ------=_NextPart_000_0032_01C5ACAC.7041A5B0 Content-Type: text/plain; charset="Utf-8" Content-Transfer-Encoding: 7bit Scott, If a check was entered with the wrong customer ID, there is really no way to just apply it to another customer, since cash receipts are customer specific. There are 2 ways of correcting this, you pick: 1. void the original check and re-enter it against the correct custom...

unable to change password via OWA
Hi, I am having a problem with users changing passwords via OWA. When they click on the change password button, it comes up with change password screen and asked for domain name, user name , old password ,etc. The problem that I have is that when I submit it, it comes up with message saying "Either the password is too short or password uniqueness restrictions have not been met." But I didn't define any password policy on DC. What can I do ? Kindly please give me some idea. Thanks Losa If you are running windows and exchange 2003 then there are password requirements that...

List Box Point-to-Select (MouseMove)
I have a list box that shows files from my hard drive. I'd really like to have it select the item being pointed to as I move my mouse pointer over it. I have coded this and it works fine unless the list is scrolled. I need a way to offset my list index to account for how far down the list has been scrolled. I can't find a list box property that will allow me to determine where a scrolled list is positioned. Something giving me the list index of the first visible row would do the trick. I haven't been able to find anything so far. I've tried some VB code that uses the Send...

find match then change cell value
In column A I have cells filled with text and in column B I have cells filled with numbers. I need to check if the number in cell C1 equals any of the numbers in column B. If a match is found then I need to change the text in column A to CBO. e.g. Column A Column B Column C aep 5 7 apa 0 gci 59 xto 5000 xle 7 oih 253 ed 8 Since the cell C1 = 7 equals the 7 from column B, I need to change the data in column A from xle to cbo. Is this possible...

Insert new row as cell contents change
Insert new row as cell contents change. After importing data I have a spread sheet with a column that contains a series of alpha numeric characters. At various random intervals in this column the contents change. EG rows 1 to 4 could contain ABC, then rows 5 to 15 could become 222. I am looking for a method to insert a blank row automatically between the rows were the contents change. Many Thanks Geo George If you are familiar with VBA the code below will do what you want. Preselect the column of data first Sub InsertRowAfterValueChange() Dim myCell As Range Dim sCurrVal As String ...