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"
Rename your Text Box to txtSearch . That is a start.
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?
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.
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?
please see attachment when I debug.
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.
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
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
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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 ( & " " & & " "...
|
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$) {
}
...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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: 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...
|
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,...
|
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...
| |