473,382 Members | 1,692 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,382 software developers and data experts.

VBA - Searching forms for most common name

daoxx
32
Hi

I'm using MS Access 2002 / VBA 6.
I've a database with several tables / forms, and some code. Everything is working fine.

I have 2 fields in each form. Each of these fields contain names from employees.

What I need to find among all these form's 2 fields, is the most common name (the one that appears the most) in both 2 fields together.
Some of the fields may be empty.
I need to perform this with a button, and I would also like that the search would be made in ALL forms, which means that by clicking the button only one name would come as output (msgbox maybe).

Structure Example:
Form1 Form2 Form3
name1 name1 name1
name2 name2 name2


Data Example:
Form1 Form2 Form3
Anthony Tom
Tom Andrew

Out of the example above, Tom would come as output.

Please Help
Access / VB Newbie

Thanks
Mar 6 '08 #1
3 1233
missinglinq
3,532 Expert 2GB
Your forms are really irrevelent for this sort of search. Forms don't store/hold data, they merely display it.What is relevent are your tables.

Welcome to TheScripts!

Linq ;0)>
Mar 6 '08 #2
daoxx
32
Your forms are really irrevelent for this sort of search. Forms don't store/hold data, they merely display it.What is relevent are your tables.

Welcome to TheScripts!

Linq ;0)>
Thanks for your response :)

Even if forms aren't relevant for the search, I think you can still get what I need here. I would appreciate if anyone could direct me in a way I could solve this, as I can NOT do it due to my low expertise.
Otherwise, I'll keep searching for the rest of the day.

Thanks

Note: Form1 -> Table1, Form2 -> Table2, Form3 -> Table3
Mar 6 '08 #3
daoxx
32
Maybe I do not need VBA? Only queries?

Please help.
Mar 6 '08 #4

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

Similar topics

3
by: sal achhala | last post by:
I'm working with java and XML documents in order to search for keywords in a given element name, eg element name 'author' == "jo blogs". The problem is the XML documents are downloaded (this...
13
by: Ian Hickson | last post by:
A group of us have been unofficially working on a proposal of extensions to HTML4's Forms chapter, and would like to get input from a wider range of people now that we think our draft proposal is...
0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
6
by: dbuchanan | last post by:
I have a Windows Forms application that accesses SQL Server 2k from a small local network. The application has been used for weeks on other systmes but a new install on a new machine retruns...
3
by: Aaron | last post by:
I'm trying to parse a table on a webpage to pull down some data I need. The page is based off of information entered into a form. when you submit the data from the form it displays a...
19
Atli
by: Atli | last post by:
Introduction At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect...
4
daoxx
by: daoxx | last post by:
Hi I'm using MS Access 2002 / VBA 6. I've a database with several tables / forms, and some code. Everything is working fine. I have 2 fields in each table. Each of these fields contain names...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.