Solved

add count to form

Posted on 2011-03-15
2
272 Views
Last Modified: 2012-05-11
when you open db- you will see form- for user to enter data
is there a way - when user enters serial number - the number of serial number already in database displays on the form?
I have a duplicate query - that produces number- but I want it to appear after user enters serial number.
thank you
Database1.accdb
0
Comment
Question by:davetough
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 35142075
test this

use this codes

Private Sub serialNumber_AfterUpdate()
Me.Text10 = DCount("*", "table1", "serialNumber='" & Me.serialNumber & "'")
End Sub

Database1.accdb
0
 

Author Closing Comment

by:davetough
ID: 35143858
thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now