If Box Not Checked, Gray Out Next Field

Feb 27, 2008

I have a form that has a check box. If the box is checked then I would like the next field to be available for data entry, however, if the box is unchecked, then I wish for the next field to be grayed out and not available for data. I suspect that it is a simple bit of VBA, but I am not fluent in VBA and need help everytime, I find something new. Thanks for all your help.

Regards,
Alan

View Replies


ADVERTISEMENT

Queries :: Set Bit Field To Default Checked?

Jul 11, 2014

I have a query that simply pulls back each tenant from a tenant table. Each row has a bit field that I use for check box's. This check box is true or false depending on the balance they owe. I currently use it to print off late reports and people that have this field set to true have a check box that auto populates on my datasheet.

I copied the query but I want to change it a little. I want to be able to show all tenants, but I want the bit field to show on my datasheet defaulted to checked for everyone (even if the table shows false) so that I can print all tenants without having to check the fields that are false in my table.

I tried to create an expression instead of using the bit field, but I no longer have the option to make that column into a "Check Box" under Lookup-Display Control.

View 9 Replies View Related

Automatically Update A Field When A Box Is Checked

Jul 22, 2014

I'm fairly new to using Access for any serious purposes. I'm trying to replicate some database functionality I setup in Salesforce and just trying to clear few core concepts in Access.

I'm messing around in the Contact Management template and I'm wondering how I can make it so when so when a yes/no checkbox field (called "Active") is ticked a date/time field (called "Last Date") is automatically set to today's date + 60 days.

In Salesforce I would create a Workflow Action triggered by an if Active = true statement, with a Field Update something like TODAY() + 60.

I can tell I need to create an After Insert/After Update Data Macro but can't quite figure out what to put in.

View 11 Replies View Related

Check Box Is Checked Depending On A Data Field?

Nov 9, 2005

I have a data field (status) that is either Graduated, Terminated, or Current. I also have a report that has a check box representing each (such as a check box for graduated and another for Terminated etc).

I am trying to get the report to read the status and check the appropriate box in the report.

I have tried this in the control source of the checkbox
=IIf([status]="terminated";True;False)
but this does not work

I have also tried this on the OnOpen

If [status] = "terminated" then
termcheck = true
else
termcheck = false
end if
end sub

But this does not work either - what am I doing wrong :confused:

View 2 Replies View Related

Forms :: Check Box Checked - Field Cannot Be Updated

Sep 27, 2013

I have created a user form that contains check boxes for various fields, and on this form, when the box is checked, I get a prompt that the field cannot be updated. I have several other forms that use these same yes/no fields, and I am not having the same problem on these forms. I checked the property sheet row source for the form and I don't see anything wrong with the select statement (that I know of).

View 1 Replies View Related

Deleting Records That Have Been Checked Or Adding A Record After A Checked Record

Jul 20, 2005

Hi,

I was wondering how to delete records that have been checked (through a checkbox) in a form...

Also, I want to add a record after the record that has been checked. I only want this ability to add records available if only one record is checked. Otherwise, if more than one record is checked, the "Add Record" button would be disabled.

Any help would be much appreciated.

TIA.

View 10 Replies View Related

General :: Multivalued Combo Box Test If Field Is Checked / Selected

Feb 2, 2015

MS ACCESS 2010,i need to create macro, on insert. which will send mail if is selscted specificed value in combo multivalued list.but, i cant access to that field to test it.

i have tried:

([USERS].[TYPE].[Value])1 = "admin"
([USERS].[TYPE].[Value])1 = 1
[USERS].[TYPE].Value(1) = "admin"
[USERS].[TYPE].[Value]1
[USERS].[TYPE].Column(1) = 1
[USERS].[TYPE].selected(1)
[USERS].[TYPE].[admin]= true
..........
..........
..
-i have tried bound Column = 0, 1....
- tried with selected atribute..

and many variations on that theme, but i cant get to that value to test it?

View 12 Replies View Related

General :: Specific Text Display In Field Separated By Commas When Fields Checked

Aug 11, 2012

I have a few bit fields that, when checked, specific text need to be displayed in a field separated by commas.

Example:
Child 1 = checked
Child 2 = not checked
Child 3 = checked
Child 4 = not checked

Output:
Child 1, Child 3

I did find this sample expression that I am using in another area and it is working perfect and I understand it works based off of string length.

Mid(IIf(Len(Expr1), ", " & Expr1, "") & IIf(Len(Expr2), ", " & Expr2, "") & IIf(Len(Expr3), ", " & Expr3, ""),Len(", ") + 1)

What is the best way to accomplish this?

View 4 Replies View Related

New & Delete Nav Buttons Gray

Apr 26, 2006

i've created a dap that connects to a sql server database. It was working at one point but I've been moving the data around from server to server and finally ran into problems using the dap. The dap is used to hold information about different agents that my company writes business for.

For reasons unknown, the dap can view the records in the database, but cannot modify the records or create new records. The new & delete buttons in the navbar are gray. All the textboxes have readonly set to false.

I can use query analyzer to insert and delete records using the same user//pass as the dap. Anyone know why I can't modify this database?

I've recently tried exporting the database to an access file, deleting the sql database, recreate the sql db, and import from the access file.

View 2 Replies View Related

How To Change First Gray Screen Of MS Access

Feb 10, 2006

Hello,
I have a query.
When we open microsoft office, background gray screen appears. How can I change this screen and put my own screen?

Thanking you in advance...

Regards,
Satish Aralkar

View 2 Replies View Related

How To Change First Gray Screen Of MS Access

Feb 11, 2006

Hello,
I am developing one softwater in ms access for small scale engineering industry. I have created switchboad wich comes at the center of the ms access gray screen. I wanted to change this gray screen of ms access and replace with my own. How to do this? can I change this screen?
Early reply on this is appreciated.

Thanks in advance...


Satish Aralkar

View 4 Replies View Related

Report Prints With Gray Background- Wasting Ink

Aug 6, 2007

Hi,
I'm running into a problem where parts of a Report are printing with a gray background. Not all of the report does this, just certain sections. Background colors aren't set to anything.

I did find this thread:
http://www.access-programmers.co.uk/forums/showthread.php?t=16054&highlight=background+print+color

problem is.. the print IS from a report-- and I don't want to see a color on screen, I want it to NOT print gray.

any suggestions where to start?

Thanks

View 5 Replies View Related

Forms :: Some Fields Have Gray Font Instead Of Black

May 7, 2013

I have a form that some fields have gray font instead of black. All of the properties seem to be the same as the other fields. The issue has to do with the 'Manage Sales Order' Form in the 'Products' Database.

Customer ID
Payment Type

View 8 Replies View Related

Reports :: Force Unbound Check Box To False / No Gray Fill

Mar 2, 2015

I have a report that generates an in-house physical invoice for an event. On this report is a small section for a staff member to make hand written notes regarding when we call a week before the event as a final confirmation.

I want to have an empty check box in this section for the person to put a hand-written check. I tried creating an unbound check box in the report but it defaults to the gray fill of a null valued check box when printed.I tried setting it's default value in the report to 0 but for some reason I can't find a Default Value field among it's properties in the Property side bar. I did some research and thought that setting the Triple State value to No would solve this issue but it didn't.

How I can get rid of the gray fill when the report is printed? The field is completely unbound--this check box is purely for hand written notes, it has nothing to do with the database itself.

View 5 Replies View Related

Forms :: Create Rectangle Covering Only Desired Controls And Then Make Back Colour Light Gray

Apr 15, 2015

A2010 - on an existing form I have a few controls that I want to hightlight. I thought I would create a rectangle covering only the desired controls and then make the back colour a light grey. But if I do then I cannot see the controls. If I change the back style to transparent then the colour reverts to nothing and I'm back to square one.

It feels like I want to bring the existing controls to the font - but how?If I create new controls on an existing grey rectangle then it works fine.

View 10 Replies View Related

Forms :: Gray-out / Disable Text Fields By Checking A Text Box

Nov 21, 2013

how can i disable a textfield or two in a form when the textbox is unchecked also how do i add a default value for it while the textbox itself is disabled, can i get away with it by adding a default value on the textbox?

View 14 Replies View Related

Queries :: How To Get Only Yes Checked Box

Aug 13, 2013

I created a table (contains ID, Name, almost 20 yes/no checkboxes).

I need to create a query where i specify the ID and it returns the id, name and all the yes checkboxes.

What I got is all the check-boxes yes and no.

View 6 Replies View Related

Value >=1000 If Checkbox Checked

Aug 5, 2005

I've been scratching my head all night, can someone tell me why the attached query doesn't work?

Thanks,

Sup

View 3 Replies View Related

Checked Out With These Check Boxes

Oct 15, 2006

Hello Folks.
I can't seem to figure this one out in a continous form. I have checkboxes where I can check them. If I check any of them, I would like to disable another check box. All this works, but what it does is it disables/enables the check box in ALL the rows, instead of just the current row.

I have attached a sample of my setup. Any help/insight would be appreciated.

View 1 Replies View Related

Checked Out With These Check Boxes

Oct 16, 2006

Hello Folks.
I can't seem to figure this one out in a continous form. I have checkboxes where I can check them. If I check any of them, I would like to disable another check box. All this works, but what it does is it disables/enables the check box in ALL the rows, instead of just the current row.

I have attached a sample of my setup. Any help/insight would be appreciated.

View 1 Replies View Related

Show Textbox When Checkbox Checked

Feb 8, 2006

Hi

I've searched the forum for my problem and the closest i got was this and it doesn't help that much

If this is the code you can put on click for a checkbox to hide a textbox.
If me.YourBoosterCheckBoxName = -1 then 'need the shot so hide the other textboxes
me.TextBox1.visible = false
me.TextBox2.visible = false
'etc....
else
end if

How do you make a code for a checkbox to SHOW a textbox?

View 2 Replies View Related

Exporting Checked Boxes Into Excel

Oct 14, 2004

Dear All:

I posted this question before but I did not include the right information. (Many thanks, Mwalts)

I have created a form with checkboxes. I wish to export data to excel on only the people that are checked.

To export is not the issue. I have created a query to list only the people that are checked. The control souce of the checkbox is called graduated. When I go into the datasheet view, the people who are checked are represented with a -1.

In regards to the design view of the query, what text or value do I place in the critera field to list only the people that are checked?

Any help is greatly apprciated.

Regards,

Dion

View 2 Replies View Related

Calculate Data If Check Box Is Checked

Oct 19, 2004

I have a user input form to enter traffic counts. There is a subform within that form that shows the total. I want to have a check box which, if checked, will multiply the data in the box by two. I have tried building expressions, macros...nothing worked. Dont know what I'm doing wrong. Any idea?

View 9 Replies View Related

Counting Checked Checkboxes In A Report

Nov 1, 2004

I have a report, where some features are listed as checkboxes. I'd like to have all checked checkboxes counted at the end of report. I've created text field. What shuold be the command in it ? (to count only checked boxes).

Thanx for any help

View 1 Replies View Related

Modules & VBA :: Checking Whether Checkboxes Have Been Checked?

Dec 17, 2013

I'm trying to write some simple code to see whether two check boxes (named cbM001 and cbM011) have been checked and if so, then send out an error message. So far I have tried:

If cbM001 Is False And cbM011 Is True Then
MsgBox "M011 cannot be selected unless M001has also been chosen."
Exit Sub

[Code].....

With this I get "Run-time error 424: object require"

View 6 Replies View Related

Forms :: How To Hide A Tab If A Checkbox Is Checked

Jan 10, 2014

My tab name is SPA and it is the third tab in my form. I want to hide it if the AddToSPA checkbox is checked. This is what I have but I'm getting error 'Compile error: Method or data member not found"

Code:

Private Sub Form_Load()
If Me.AddToSPA = True Then
Me.SPA.Pages(2).Visible = True
Else
Me.SPA.Pages(2).Visible = False
End If
End Sub

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved