473,480 Members | 1,506 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Continuous forms problem

4 New Member
I have a form running in access 2003. The forms property is set to continuous forms so that all records from an underlying query can be diaplayed. On the form are 12 sets of fields from [ Date1,Payment1,Type1].......to..... [Date12,Payment12,Type12] In the header of the form is a single unbound field that is populated with a date picker and a command button. The idea is that when a date is entered in the unbound field and the command button is pressed there is a graphical view [ie border colours change etc]of the status of payments ie [over due = red border etc] i have the code working but it works across all forms in the continuous forms view does anybody know how i can have the code work on each individual form that is displayed
Thank you
Grahamib
Nov 11 '09 #1
5 4050
Megalog
378 Recognized Expert Contributor
Any properties set to those fields will be repeated throughout all the records in a continuous form. What you need to do is set conditional formatting rules on the fields you want to format.

An example that would be applied to the Date1 field would be:

Expression is [Date1] < [DatePickerField] (Format for a red fill color)

This formatting would only show up on the records that Date1 is overdue (the date is prior to the one selected on the top of the form).
Nov 11 '09 #2
grahamib
4 New Member
Many thanks for the help i have applied cond formating and for three of the con ditions it works fine. Unfortunatly i have a fourth condition.
Is it possible to write code in the "Expression is" box to achieve the following
[Date1]<{Datepicker]&[chk1]=False
[chk1] being a check box denoting weather an account is paid or not

Perhaps i shoud have explaind my objectives more clearly
I have 4 conditions to satisfy these being:

1 Future date = blue back colour
2 Current date = Green back colour
3 Past date = Red back colour

These work fine in conditional formating howevwer i have a check box [chk1] that donates that a payment has been made and i need a condition to reflect this even if its no formating.

Many Thanks

Grahamib
Nov 12 '09 #3
grahamib
4 New Member
HI
Thank you for pointing me in the right direction. I Have managed a work around.
I have created a text box default value "Paid" and formatted it to the [chk1] state.
When true the background is Green
When false the bacground and font are the same colour as the page detail (it can not be seen)
Thank you once again the whole page looks and works like a dream

Grahamib
Nov 12 '09 #4
Megalog
378 Recognized Expert Contributor
Glad you got it working Grahamib, and sorry I didnt get back to you sooner.

To answer your last question, yes you can add a boolean test into the conditional formatting equation. It would basically be: [Date1]<{Datepicker] AND [chk1]=False

But you'll still be limited to only 3 conditions (at least until Access 2010). So you could add the boolean test to your 3 conditions, and it would require that a payment wasnt made for the conditions to take effect, otherwise if it was paid it would be whatever the default color for the field is.
Nov 19 '09 #5
missinglinq
3,532 Recognized Expert Specialist
Just as a reminder, Conditional Formatting allows for three conditions plus a fourth Default Format, which sometimes, though not always, surfices.

Linq ;0)>
Nov 19 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5196
by: Lauzon, Robert: IHAB | last post by:
I've got a form (frmViewRequests) that has the DefaultView set to Continuous (that's how I want it ... so far, so good) On this form, I've got a "Create New Request" Button that opens another...
2
4001
by: Cro | last post by:
Dear Access Developers, I am developing a form with 'default view' set to "continuous forms". I am suffering with a problem I can't yet see a solution too. Each record has many fields. Two...
4
6963
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
3
6631
by: Richard Hollenbeck | last post by:
I have the following query in my form's code: Private Function Get_Data(fieldNum As Integer) Dim strSQL As String Dim db As DAO.Database Dim rs As DAO.Recordset strSQL = "SELECT & "", "" & ...
9
6740
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
1
4852
by: Bill | last post by:
Problem: Combo box data disappears from view when a requery is done See "Background" below for details on tables, forms & controls On a form, I want to use the setting of bound combo box C1...
2
2378
by: panwala_bhavesh | last post by:
Thanks in advance... I have a form displaying the results of a query in a continuous form style. I want to be able to double-click on the key field of the form (a textbox, in this case a AssetID)...
1
10868
by: blueheelers | last post by:
I have been researching for several hours on the best way to display images in continous forms in Access 2003. For example, I want to display employee name, email, phone, and picture for each...
8
11618
by: Steffen Beck | last post by:
Hi NG I need some help with a problem on my forms. If I have 2 related tables, for instance companies and employees, and want to display all companies on a continuous form with their...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7045
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7087
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5341
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4782
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.