Results 1 to 7 of 7
  1. #1
    arneym is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Location
    Indiana
    Posts
    17

    Question Conditional Formatting form fields on 1st entry and every 10th entry.

    I have a form that acts as a log sheet. The operator does a 1st piece check (all fields are to be filled out), and then I want certain checks to be conditionally formatted black until the 10th piece (all field are to be filled out again). Here is an example:



    1st Piece:
    data
    data
    data
    data
    data

    2nd Piece(New Record):
    data
    data
    Blacked out
    Blacked out
    Blacked out
    .
    .
    .
    .
    .
    .
    .
    10th Piece:
    data
    data
    data
    data
    data

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Refer to http://www.lebans.com/rownumber.htm for examples of generating row number in queries and forms. Download the sample db.

    Use Conditional Formatting http://msdn.microsoft.com/en-us/libr.../gg508986.aspx.
    Use Expression with condition dependent on the row number: [Text23]=1 Or [Text23] Mod 10=0
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    arneym is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Location
    Indiana
    Posts
    17
    Quote Originally Posted by June7 View Post
    Refer to http://www.lebans.com/rownumber.htm for examples of generating row number in queries and forms. Download the sample db.

    Use Conditional Formatting http://msdn.microsoft.com/en-us/libr.../gg508986.aspx.
    Use Expression with condition dependent on the row number: [Text23]=1 Or [Text23] Mod 10=0
    Thank you for your suggestion, but I could not get it to work. The example was for a single, continuous row. Here is my Database:
    Help.accdb

    I put text on the side of each field to describe what I am looking for.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I tested this suggestion with my db and it worked great.

    Why didn't it work work for you - error message, wrong results, nothing happen?

    The db you posted has no data and no code to evaluate.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    arneym is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Location
    Indiana
    Posts
    17
    Thank you for your quick response!
    I had to delete everything that I did, because it said that it was too big. I did compact and repair. I thought that we had 2MB to play with and mine was only 800K. It would only give me 500K, which I squeaked by at 490K. I thought that a visual of my form would help explain things better.

    I understand how it adds 1 to each row, but your example had 1 continuous row. My form has 21 rows. I'm not getting it to work.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Your form is set to SingleForm view, that means a single record displays. A record is one 'row'. The 'rows' you reference are fields of that one record arranged vertically instead of horizontally (I count 20, a textbox with the row number generated by the function would make 21). Apply Conditional Formatting to each textbox you want to show up every 10 records.

    Attempt and if still need help, post file with code. 2mb zip allowed.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    arneym is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Location
    Indiana
    Posts
    17
    Sorry for not responding sooner. I had been pulled away from this project for a little while. Thanks for your help, I got it now.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Missing data entry fields in my subform
    By Nashskye13 in forum Forms
    Replies: 7
    Last Post: 07-30-2012, 03:22 PM
  2. Replies: 2
    Last Post: 11-16-2011, 07:38 PM
  3. Conditional entry into form- Intresting
    By shanky365 in forum Forms
    Replies: 7
    Last Post: 07-28-2011, 06:55 AM
  4. Conditional data entry access: intresting
    By shanky365 in forum Access
    Replies: 1
    Last Post: 07-20-2011, 02:51 AM
  5. Replies: 3
    Last Post: 06-04-2010, 12:47 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums