Conditinal Formatting For Control (continuous Forms)

Jun 29, 2006

I have a continuous form and want to display 6 buttons. I want the buttons to display depending on if there is a value in a certain field or not..

fields "DocNum1" thru "DocNum6" from TCD_RequestedCRDB

I was told that the Visible property doesn't work for individual records on continuous forms (that it will affect all records).

Is this true? i tried and couldn't get it to work..

View Replies


ADVERTISEMENT

Forms :: Conditional Formatting Of Control On Continuous Form

Feb 2, 2015

I have a continuous form on which where each record has many controls, including control (A). I wish to set the colour of this control based on the contents of another control (B). Control B is a memo format and is placed behind another control making it hidden. The idea being that the user can then click on control(A) and look at supporting information from Control B on another form.

Conditional formatting cannot be used since this only allows conditions based on the control (A), not (B). Event procedures cannot be used since they all depend on making a record the current record, and I want the user to immediately see when further information is available. When I apply VBA code using an 'on load' event it is action for all records on the form in a way that if only one record has extra information, all records are flagged in this way.

View 6 Replies View Related

Conditional Formatting Continuous Forms

Dec 2, 2005

:confused:
Hi. Does anyone know a way to change the colour of controls depending on their value in a continuous form?

I can change the colour of the current row in a continuous form, but I cannot adapt this so that it changes colour depending on the value (ie conditional formatting)

Ta

View 5 Replies View Related

Conditional Formatting On Continuous Forms

Nov 7, 2005

I have an accounting database with queues that list each requisition's important information (ID, vendor, dates, etc) plus the its status (not yet submitted, approved, ordered, delivered, filed, etc).

I'd like the font of the status field to change color depending on its value. I can't use the standard conditional formatting because there are more than 3 statuses.

I've tried an If/Then statement, but the form only looks at the status of the first record, then colors the font of the status fields for the consecutive records that same color no matter what their value. How do I get it to evaluate per record? As in, if the first record has a Submitted status, its font is blue, but the next record is Ordered so its font is red.

Here's my code, I used it in the OnOpen event for the form:
If req_process_status_rec_id = 2 Then
process_status.ForeColor = 13209
ElseIf req_process_status_rec_id = 1 Then
process_status.ForeColor = 8388608
ElseIf req_process_status_rec_id = 3 Then
process_status.ForeColor = 8388736
ElseIf req_process_status_rec_id = 4 Then
process_status.ForeColor = 16737843
ElseIf req_process_status_rec_id = 5 Then
process_status.ForeColor = 52479
ElseIf req_process_status_rec_id = 7 Then
process_status.ForeColor = 6723891
ElseIf req_process_status_rec_id = 8 Then
process_status.ForeColor = 16711935
End If

Thanks!

View 3 Replies View Related

Forms :: Conditional Formatting On Continuous Subform?

Jan 4, 2015

I have a continuous subform on a form. I have applied conditional formatting with expression is.. so that the formatting on one object (field on the subform) depends on whether there is anything in another field on the same subform named "Remarks".

My problem is that I this is not working to my expectations. First of all when the form with the subform is loaded the conditional formatting does not appear immediately. One has to run over the fields with the mouse with the hope that the conditional formatting appears.

Secondly the conditional formatting is not working well as they should.

View 5 Replies View Related

Forms :: Repaint Continuous Subform With Conditional Formatting

Jun 2, 2013

I have a continuous subform with conditional formatting whereby when I select a record the row is highlighted.

It all works fine except that I have to requery the subform to enable the conditional formatting to work.

The Repaint method does not work on the subform.

View 1 Replies View Related

Forms :: Conditional Formatting Of Controls In A Continuous Subform (Access2007)

Aug 28, 2013

I have a continuous subform with multiple controls (textboxes) per row.

I'm trying to set up conditional formatting such that certain textboxes are highlighted based on comparisons with other textboxes within the same row/record.

What's bothering me is, I have managed it for one, but struggling to do it for others!

For example - I want to highlight 'similar' records (i.e. possible duplications) - and have managed this by adding a textbox across the length of the row and applying the following CF expression :

Quote:

DCount("[ID]","[tblMyTable]","[ID] <> " & "txtID" & " And [Field1]=" & "txtField1" & " And [Field2]=" & "txtField2" & " And [Field3]=" & "txtField3" & " And [Field4]=" & "txtField4" & " And [Field5]=" & "txtField5")>0

Works brilliantly - highlights all records where fields 1 thru 5 hold common values.

Now I want to highlight where two fields within the same record are different (i.e. they are driven by different data but should hold the same value)

Am trying this :

Quote:

"txtField3"<>"txtField4"

But it's not working - it's highlighting pairs of fields even though they do hold the same value.

Even tried switching it for a DLookup (which seems like doubling up on effort, but just to see if it worked)

Quote:

DLookUp("[Field3]","[tblMyTable]","[ID]=" & "txtID")<>DLookUp("[Field4]","[tblMyTable]","[ID]=" & "txtID")

But no dice? I can't figure out why the same basic logic which works so well for the first CF, doesn't hold for the second one.

View 5 Replies View Related

Forms :: Continuous Subform With Conditional Formatting (Access 2007)

May 15, 2014

I have a continuous subform with a fairly complex snapshot query as its record source. I have controls on the main form to allow criteria parameters for the query and a command button to requery the subform based on the selected criteria. I also have conditional formatting on a number of the continuous controls in the subform (the conditions are fairly straightforward, i.e. highlight if null, true/false etc)

When the subform is (re)queried, it seems to repaint several times (3 or 4 although it appears arbitrary to me) before it eventually settles. And it really louses up the aesthetics as controls flicker between colours; sometimes I even lose the background colour on parts of the detail section, or controls disappear altogether. And this continues as I scroll down the subform (or even click anywhere on it)

I don't mind that the query itself takes some time to run - of the order of a few seconds each time - but I'd prefer for the screen to wait until the query is completed, and all of the CF applied, before refreshing itself, instead of 'sweeping' top to bottom repeatedly. It's a snapshot query so once it's run, there should be no changes to the dataset.

I've tried Application.Echo but it has no effect whatsoever.

View 6 Replies View Related

Forms :: Conditional Formatting In Continuous Forms

Apr 14, 2014

I have a drop down box on a continuous form called (cmbItem).When the users choose Option 6 (Other) and on the open event I wish to show another field txtOther which allows the user to give a description of what 'other' means but I only want to show the field for that record. (the user could potentially have more than one record as other)Using conditional formatting I have managed to change the colours of the box so that the background is the same colour as the form unless other is chosen when it reverts to white. However I can't do the same with the border as this is not one of the options provided.

View 2 Replies View Related

Forms :: Conditional Formatting In Tab Control

Nov 28, 2013

I have a Tab Control "box" on a form called PatientUpdate.

I would like to apply a conditional format on the second tab named Grp Bkg. In its properties, the Page Index is 1.

In the Tab resides a subform called Patient_GroupBooking which contains the field GroupBkg_Name.

CONDITION: if [GroupBkg_Name] is not null, make the tab Grp Bkg's font color red instead of the default black.

How to write this in Form Design Tools, Format, Conditional Formatting or other.

View 2 Replies View Related

Continuous Forms - Hide A Control In A Record?

Sep 20, 2005

I have a form that displays its records in a Contiuous Form. The controls on the form are: txtRecID, txtStudID, cboTrimester, cboType, fld Comment, and blnReqConf.

My issue is that I need the blnReqConf (Request Conference) checkbox and label controls to only show on the reocrds when/if the cboTrimester = "Tri-2" and the cboType = "Parent" or "Teacher" are selected or displayed.

I have written:
If cboTrimester = "Tri-2" And (cboType.Column(1) = "Teacher" Or cboType.Column(1) = "Parent") Then
blnReqConf.Visible = True
lblReqConf.Visible = True
Else
blnReqConf.Visible = False
lblReqConf.Visible = False
End If

The problem is that the controls display on all records throughout the form. How do I make it so that the controls are hidden on some records in the continous form and are shown on others based on the criteria? Is it possible?

View 7 Replies View Related

Forms :: Formatting Calculation In Unbound Control

Sep 17, 2013

I have an unbound text box with the following control source:

="The scores below are based on the number of total evaluations (" & Sum([TitleIDCt]) & ")."

I set the formatting of the control to Standard. It reads:

The scores below are based on the number of total evaluations (1718).

I need the comma to show up so it reads like this:

The scores below are based on the number of total evaluations (1,718).

Can this be done?

View 6 Replies View Related

Forms :: Conditional Formatting On Actual Data Control

Apr 1, 2013

I inherited an Access 2000 (2002?) database that uses a textbox behind another to change the background color based on two different fields.

The Format property is set to: "[Green];"[Yellow], the Data ControlSource is set to:

=IIf([chkCheckedIn]=True,1,IIf([PassExpired]="NO",1,-1))

I understand the IIF(), but what's happening with the crazy characters? (It works the text changes from yellow to green). I tried replacing it with conditional formatting on the actual data control. That only changes color when I click on the control. The above shows the color all the time.

View 1 Replies View Related

Forms :: Rota Table - Continuous Type Form In Tab Control

Oct 23, 2013

I am mid way through a Access db and have a solid idea what i want from a form. The idea is for a rota display and edit form.

a tab control with 5 tabs (-2 weeks, -1 week, current week, + 1 week, + 2 weeks) and when the user clicks it lists all the employees (Employee Table) with any found rota entrys (Rota Table) populating into a text box type table with employees information blank where no rota information has been entered.

then the user can edit / add shift information from that table and hit save.

the main rota information is inputted by an excel import but this is done once a month and adhoc changes will be needed (holidays absence etc)

the only thing i found like what i want is a continuous form (which ive never used before but been told that wont go in a tab control)

How i would accomplish this (code snippets - doesnt have to be detailed just the fundamental functions so i can add modify to suit the information the sql's i already have its just the form controls.)

View 3 Replies View Related

Forms :: Control Button Linked To Specific Record In A Continuous Form

Apr 3, 2014

Access 2010. I have a form pulling from a query to create a "To Do' list of sorts. On this form is a button to open an input form for the corresponding record (I hope). When this button is used I want it to pull certain data for that specific line from the query and input it into the new record opened by the button. I know this is possible as I use another db that does this but I have not been able to figure out how to make it work in the new db.

View 14 Replies View Related

Forms :: Continuous Subform - Control To Display Image / Icon Based On Another Field

Jan 9, 2014

I have a continuous subform which queries a table of attachments. I'm using Access 2007 but not using the Attachment datatype; this DB will grow considerably and I don't want to waste precious space by filling it with bulky files. So instead, I have code which makes a copy of the attachment and adds the hyperlink (to the copy) to the table instead.

Now - I want to add a control to the subform to display an icon / image reflecting the file type of the attachment (Word doc, Excel s/s, PDF etc.)

But not sure how to go about it.

I was thinking I could use FileSystemObject.GetFileExtension at the point in the code where the attachment is added, and add a new field to my attachments table (i.e. translate "*.xls*" to "Excel", etc.) Then store / embed a handful of images for the core types I would expect and use an image control on the subform to display the image based on the value of that field.

But is that even possible / feasible?

Or, is there a handy API which can retrieve the icon associated with a file type based on what has been installed on the local machine (even if there is, there's still the problem of setting up the image control to display the appropriate icon specific to each record...)

Or, is there another control available which would be better suited to something like this than an Image control?

View 4 Replies View Related

Continuous Form View - Formatting

Jul 14, 2005

I want to display more records vertically than 1 column in my continuous form. Is this possible in some way?

I want to have like 2-3 columns with 5-6 records each.

View 4 Replies View Related

Conditional Formatting Of One Button On Continuous Form

Jul 17, 2005

Hello there,

I was wondering if any of you experts out there know a way to help me out here.
I was wondering if it is possible to color the text on the last pressed button on a continuous form different from all the others, so people will know which one they pressed last?
I've been trying a lot of different things here but i'm stuck. All i can get done is that all the buttons turn a different color, but doesn't solve anything.

I hope some of u can help me out here.

Greetz,
And thanx in advance,
Rutger

View 7 Replies View Related

Continuous Form - Conditional Formatting On Option Box

Apr 24, 2015

I have a continuous form. On which I have a frame and three option boxes with values 1, 2 and 3 what I am trying to do if one record is selected in option box other text boxes of the same record turn red I am using this code which works perfectly expect that it's doing for all records. I want that particular record to turn red.

Code:
Private Sub Form_current()
FormatGroup
End Sub
'
Private Sub Frame53_Click()
FormatGroup

[Code] .....

View 1 Replies View Related

Modules & VBA :: Change Formatting Of Unbound Text Field On Continuous Form

Apr 16, 2015

I have a continuous form with a text field that says "Select". There are two other fields, one of which is Brand. When the Brand Combo box has nothing in it I want the text box to appear (instructing the user to select a Brand) But once the user selects a Brand and goes to the next records, I would like the "Select" in only that record to become not visible. I tried conditional formatting but can't apply that to an unbound control ( or at least it is grayed out when I select the text box) and any other possible solutions I have found changes all of the selects - not only the one in the changed record.

View 7 Replies View Related

Forms :: Default Formatting Option In Conditional Formatting Dialog?

Aug 1, 2014

Need to confirm whether the Default formatting option in the Conditional formatting Dialog won't work in datasheet view of a form. Please note that all conditional criteria are working fine but not the Default Formatting option - only in the Datasheet view (In Single Form view the default formatting is working fine)

View 11 Replies View Related

Tab Control Formatting...

Jun 16, 2006

I was wondering if anyone was fairly familiar with tab controls and how to format the look and feel of them? I was wondering how I can change it from being "sunken"? I don't see an obvious option when I click on the tab control. Also, is there a way to move the location of individual tabs along the top of the subform? Maybe even disconnect them as buttons altogether? anyone know? thanks a bunch

View 4 Replies View Related

Tab Control In A Continuous Form

Sep 26, 2006

Hi I have a problem that has been messing my head up. I want to be able to change the way the tab button works in a continuous form, instead of the tab tabbing across/through a single record first I want to be able to tab down/through the fields. I know this may seem strange to some but that is how I would like it to work. I could change the form to something else but that would require too much alteration and make life harder in the long run.

I currently have some VBA code set to ensure that the field that is select on open has a TabStop and all other fields do not. Is this the correct way of doing it or is there an easier way.

http://www.imagestation.com/picture/sraid215/pd61e514836ed9c50e77643aaf787f521/ecc91c25.jpg

Morian

View 2 Replies View Related

Current Control Only On Continuous Form

Jun 1, 2005

I am having trouble with a continuous form setting Enabled to False in the current record only. I have tried code in the OnCurrent of the form and OnOpen, examples like

If Me.NewRecord then
Me!Quantity.Enabled = False
.....

also

If Me.NewRecord = True then 'if this makes any difference?

Dataentry is set to Yes and have tried No also with no difference.

So I can set all [Quantity].enabled to false but I only want to set the New Record, not all the records I have already created.

Any help would be appreciated as I still have a pretty basic knowledge of Access

View 5 Replies View Related

Continuous Form In A Tabed Control ?

Oct 19, 2004

i am about to try and create my first unbound form, which i plan to use vba... god help me!!!

i plan to have a few text boxes on my form, and then on the same form have a tabbed control, can i have a continuous form in this tabbed control ?

View 1 Replies View Related

Continuous Form Breaks Control Buttons?

Dec 18, 2005

Hi folks,

I've got two control buttons ('OK' and 'Cancel') on several forms. They work on the forms in Single Form view, but not on the one form that is in Continuous Form view. I couldn't find any mention of this behavior on this forum, but on another forum somebody mentioned that Continuous Form view makes control buttons do odd things. Any ideas on how to handle this?

Here's the code:

Private Sub OK_Click()
On Error GoTo Err_OK_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Me.Visible = False

Exit_OK_Click:
Exit Sub

Err_OK_Click:
MsgBox Err.Description
Resume Exit_OK_Click
End Sub

Private Sub Cancel_Click()
DoCmd.Close acForm, "Glossary"
End Sub

View 3 Replies View Related







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