473,326 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Highlight Identical Fields in Access Table

7
Hi,

I have an access query that finds the rows that have certain parameters common among them eg : Username
How is it possible to highlight the matches or display only the matches.

TBL:
username age school city
jon 11 a b
jon 12 c d
jane 13 e f

so the output should be the first two rows with jon highlighted.
Jul 26 '07 #1
3 2410
JKing
1,206 Expert 1GB
Do you want the query to show only those rows where the username is seen multiple times? i.e. find any duplicate user names?
Jul 26 '07 #2
ago
7
Do you want the query to show only those rows where the username is seen multiple times? i.e. find any duplicate user names?
No I have already done that, what i need to do is if there are certain fields that are common in the rows they should be highlighted or maybe change the font to bold.
Eg:

Name school city
Joe ABC XYZ
Joe ABC PQR
Mark MNO CCC

So I am able to get the output :
Name school city
Joe ABC XYZ
Joe ABC PQR

Which selects the rows with the identical name. Now i want to highlight the school ABC as thats the same in both rows. If thats not possible can I change the font to bold. As i was able to do this in excel using code but could not manage to do this in access.
Jul 28 '07 #3
ago
7
I used a macro like :

Sub test()

If ActiveCell.Value = "" Then
With Selection.EntireRow.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
End If
End Sub

to mark the identical rows in after exporting the table to excel. Can a similar one be used on the access table ?



No I have already done that, what i need to do is if there are certain fields that are common in the rows they should be highlighted or maybe change the font to bold.
Eg:

Name school city
Joe ABC XYZ
Joe ABC PQR
Mark MNO CCC

So I am able to get the output :
Name school city
Joe ABC XYZ
Joe ABC PQR

Which selects the rows with the identical name. Now i want to highlight the school ABC as thats the same in both rows. If thats not possible can I change the font to bold. As i was able to do this in excel using code but could not manage to do this in access.
Jul 30 '07 #4

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

Similar topics

13
by: David Morgan | last post by:
Hello I have a little function to highlight text if it exists. Function Highlight(vFind, vSearch) Dim RegEx Set RegEx = New RegExp RegEx.Pattern = vFind RegEx.IgnoreCase = True Highlight =...
3
by: Andre Doreid Berro | last post by:
Greetings All I have requested help before and I really need your help in this. I am working on an Access database of contacts. I have plenty of records but plenty of them are almost...
3
by: Prakash Wadhwani | last post by:
Is there any EASY way to highlight a full row in a continuous form so that as i navigate up & down the table/continuous form using the arrow keys, the entire line (all fields) get highlighted ? ...
4
by: Terry | last post by:
I need some help refining an MS 2000 relational databse. I have created a simple relational database using two tables, 'Student Details', 'Exam Details' and two forms, 'Input/Edit Exam Details',...
1
by: Not Me | last post by:
Hey, In our database, we have implemented auditing simply by holding a copy of each row of the specific table at any time that data is updated. This gives us a long list of full records, often...
3
by: almurph | last post by:
Hi, I'm a newbie to Javascript. I can;t even finf a full API for it! Anyway I have a table structure and when a user presses the down-arrow button the item in said table is meant to be...
0
Merlin1857
by: Merlin1857 | last post by:
A thing I have been asked for on a number of occasions is the ability to highlight text after its been searched for in a record return page. The following does this perfectly. Use this function...
2
by: steph | last post by:
I have a table with 250 fields. Of course you are wondering why 250 fields... what could I possibly be storing in so many fields? I am using this table as a general import table for files that...
4
by: gillianbrooks91 | last post by:
Forgive me for asking this question, I've trawled through nearly every available post on this subject that I can find for a few weeks now but nothing quite points me in the right direction. I'm...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.