473,385 Members | 2,269 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,385 software developers and data experts.

Display single record or duplicate records

MS Access 2010. I am using a split form and when I perform a search for a record, and there are no duplicates, need to display that single record and not the other records in the table. If are two or more records (duplicates), need to display only those duplicates and not other records in the table.
Apr 18 '18
59 4219
So if I remove the search button, what should the VBA read after "Private Sub"? Should I delete "txtSearch_AfterUpdate()". If so, what should I replace with in order to complete the Private Sub or does the Private sub start above "On Error GoTo EH"
Jun 14 '18 #51
twinnyfo
3,653 Expert Mod 2GB
Rename your Text Box to txtSearch. That is a start.
Jun 14 '18 #52
For Text box where Receipt Number or ANumber or Serial Number is entered:
Name - Text438
Caption - empty
On Click - empty no event procedures

YOu want me to change Name from - Text438 to txtSearch?
Jun 14 '18 #53
twinnyfo
3,653 Expert Mod 2GB
Yes. OR you can change the name of the procedure. It doesn't matter. But that is how the procedure knows which control it is connected to.
Jun 14 '18 #54
Ok.. I have changed the name of the unbound textbox to txtsearch. Enter receipt number and still just sits there. You said earlier that I did not need the SEARCH command button. Should I still remove the button? What about the VBA code?
Jun 14 '18 #55
please see attachment when I debug.
Attached Files
File Type: docx Text438.docx (70.1 KB, 97 views)
Jun 14 '18 #56
twinnyfo
3,653 Expert Mod 2GB
check to make sure that the After Update Event in the Text Box has [Event Procedure] in it. If not, click the drop down of that field and select Event Procedure.
Jun 14 '18 #57
ok... Event Procedure is there now. Still no search performed. Earlier was told do not really need search button. I am using the search button with no results. Should I delete search button, if so, what about the related VBA coding
Jun 14 '18 #58
Hello. The link I have provided is to the site where I originally got the guidance for my Update Record search by list box. I do not know if it is helpful in my situation, since so much has changed with VBA. https://www.youtube.com/watch?v=wCPs4aE5I2w

Thank You
Jun 15 '18 #59
twinnyfo
3,653 Expert Mod 2GB
Before we continue with this, do you understand the nature of procedures and controls? A control is linked to a procedure based upon the name of the control and the name of the procedure, as well as the event that fires the procedure. When you have a control and go to its properties, and select “Event Procedure” from the drop down, it will automatically take you to the VBA module that should hold that procedure. In your case, it should take you to the procedure you have created. If not, it should create a new event procedure.

For example, take your text box txtSearch. In the properties, find the After Update event. Go to the drop down and select [Event Procedure]. It should take you to the VBA procedure we have written called txtSearch_AfterUpdate.

Let me know what happens.
Jun 16 '18 #60

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

Similar topics

9
by: atse | last post by:
Hi, My table in the database may contain duplicate records, which means except the primary key (auto_increment) field is unique, all or almost of all the fields are with the same content. How...
2
by: ms | last post by:
Access 2000: I am trying to delete duplicate records imported to a staging table leaving one of the duplicates to be imported into the live table. A unique record is based on a composite key of 3...
1
by: Ayo | last post by:
Hi I'm a newbie here. I'm hoping someone can help me.. Here is the scenario: I have a bunch of duplicate records I need to clean up This query below will help me identify the list of duplicate...
8
by: mindwarp | last post by:
Hi, When a user submits / posts data my php script Inserts data into my database. If they refresh the script or click back and click submit again I get duplicate record. Is there an easy...
2
by: Carroll | last post by:
I'm looking for a way in SQL to find duplicate records in a single table, that are the same based on 3 columns, regardless of what is in the other columns in the duplicate records. I would like to...
2
Zwoker
by: Zwoker | last post by:
Greetings everyone, I have a problem that I hope has a simple solution. I am using MS Access 2003. I have a table that is a list of financial transactions. I am using a make table query over...
4
by: Thomas Arthur Seidel | last post by:
Hello to all, I have a small or big problem with a customer data base, where during a change of system we might have created duplicate records. This should be easy to find, you might think, but,...
2
by: nomvula | last post by:
hi guys i need some help to duplicate records on my form datasheet: here's the example of my form results: ClientLookup DateCaptured ForecastDate Description ForecastQuantity Forecast Actual UJ...
1
watertraveller
by: watertraveller | last post by:
Hi all. My ultimate goal is to return two columns, where no single value appears anywhere twice. This means that not only do I want to check that nothing from column A appears in column B and...
8
by: Sandhya1988 | last post by:
Hello friends, Can anyone help on my issue i have attached the screenshot with explanation Brand, Model & Item fields are text fields and Items Description is calculated filed ( & " " & & " "...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
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
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
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...

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.