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

Home Posts Topics Members FAQ

Different conditional formating for each record displayed by a form

2 New Member
Hi,

I want to loop through my records and display/print them in form view.
For each record I want to display only the fields that hold data.
Null values change between fields and are null,0 or 999.
I have written a code that sets the Field.Height to 0 when the field is empty.
The problem is that when I run the code it works only for the current record in the form while I want it to reaplly the view for each record.
I am sure this is very basic.
Could anyone tell me how to make the code run for each record in the form.

Thank you
Feb 23 '11 #1
2 1865
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Hi erel. If you mean that you want to alter the way fields are displayed in continuous form view it is by no means a simple or basic task. Access uses just one set of controls on the form's detail section, and this single set of controls is repeated for each record displayed in continuous view, so it is impossible to resize just one instance of a control without the change rippling to all other instances visible on-screen at the time.

The more usual method of hiding a control is simply to set its Visible property false under code control. Again this will work fine in single-form view but not in continuous view.

Please confirm which view you are meaning, as the difference is quite fundamental to what you can really do using the On Current event to make record-by-record changes to what is displayed.

-Stewart
Feb 23 '11 #2
erel joffe
2 New Member
Thanks for the prompt reply.
First I must state that I have no experience in VBA and I am using my limited knowledge in Java to get by. I am a physician runnig a study and I use form to display records of different subjects in a study. Each record is different and I need to print out a report in form layout only of the not-null fields.
I guess this a continous form.
I read of the recordset command but I am not quite sure how to use it with the form.
I will go read about the on current event and see if it works.
If you or anyone could direct me to an example of a similar code I can take it from there.
Thanks and all the best
E
Feb 24 '11 #3

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

Similar topics

2
1629
by: rudy | last post by:
I am trying to highlight the output of a field to display something similar to conditional formating. Would prefer to display the result with a code instead of a colored font or colored background...
2
1700
by: crcucb | last post by:
I know Access struggels with having a different look in each record in a continuous form. I am looking to work with a list of data and have some records indented, to designate they belong under...
3
1768
by: Tom | last post by:
Is there any way to use conditional formating to change a control for a field in a continuous form to a textbox, option group or combobox depending on the value of another field on the form? On a...
1
4640
by: Kevin.S.Campbell | last post by:
Greetings, I'm trying to run a sql query on a continous form. I have the query working correctly the way I want it. I want this query to be displayed on the form in the text box on the load...
0
1322
by: Marcelo | last post by:
Hi, I have the following need: I list a table from an access database but cannot interact with each record. At the html page I display all records, one field (field1) from and 3 buttons for each...
1
1549
by: Rathi R | last post by:
Hi, I am new to this forum. I am working on Ms-Access. Based on the data in various tables i am generating a form. In that form, the calculated values have to be displayed one after the other i.e as...
3
6059
by: kevinj | last post by:
Greetings, I am creating a "stoplight" type report that is based on the number of days between dates, the field will be highlighted in red, yellow, or green. I am able to change the background...
4
2144
by: QntmPg | last post by:
Hi all, I have read through what I could find on previous questions regarding using the OpenArgs property, but I'm still not able to get my form to open correctly. I'm not sure exactly where the...
7
26068
by: ggfota | last post by:
I have problem creating Access (Continuous) Form with indepenent CheckBox for each record. The user should be able to select records that will be processed by VBA based on ChceckBox value. When I...
8
5499
by: Rachel Hayes | last post by:
I'm trying to apply a conditional formatting property to one field of my continuous form. I want the date field to go red if the date listed is more than 3 months old. I've managed to write some...
0
7041
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
7044
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,...
1
6739
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
6929
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4779
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
4481
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.