473,508 Members | 2,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display count of table entries

102 New Member
Background: Front end is MS Access/VBA and Back end is MS SQL Server 2008.

I have a form (Supplier) that shows all the details of the supplier. This form has a button on it and when pushed all of the notes are shown on this supplier. A one to many relationship is established (Supplier --> Notes). This button works fine. Is there a way I can put the count of Notes table entries beside the button on the Supplier form?
Apr 27 '15 #1
2 1439
Seth Schrock
2,965 Recognized Expert Specialist
You could use the DCount() function to count the number of records.
Apr 28 '15 #2
jforbes
1,107 Recognized Expert Top Contributor
I do something very similar to this for the caption of Tab on a Tab Control and it is going about it in the manner Seth mentions. I've placed this in the OnCurrent Event of the Form
Expand|Select|Wrap|Line Numbers
  1. Me.pgNotes.Caption = "Notes(" & DCount("JobNoteID", "JobNotes", "JobNumber='" & Nz(Me!JobNumber, "") & "'") & ")"
  2.  
Apr 28 '15 #3

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

Similar topics

3
9095
by: C. Homey | last post by:
I have an Access 2000 database (42,000+ records) for which I need a count of records by state (AL=320, AK=92, NY=1,932, etc). Obviously, I don't want to (and probably can't...) do the count...
3
2982
by: Raed Sawalha | last post by:
Dear : I have an image in a aspx page I need when user mouseover it to display HTML Table with links. Regards
11
9269
by: Sheau Wei | last post by:
i wish to know how to create a dinamically edit table entries .can u help me ?thanks.
1
1954
by: Soumya v s | last post by:
i wants to display all table names in the combo box with php and mysql
0
1469
by: dreaken667 | last post by:
I currently have a PHP script that pulls records from a table and runs PHP scripts based on the table entries, but it requires that I actually load the page in a browser and wait for it to complete....
1
2592
by: muld | last post by:
I've inherited a database system designed to calculate sickness absence statistics. There is a main table with an employee ID which also holds the number of days worked by that person in a year ....
1
1972
by: khadar siddi | last post by:
I have tested this in the following two browsers. 1.Internet Exolorer 2.Mozilla FireFox In Internet Explorer: ------------------------ When I right click and see the view source...the html...
0
1761
by: zulkifb | last post by:
How to count table inside DB2. I have almost 400 table in DB2v9. How can I make calculating for 1. table have no relationship 2. table have relationship
0
7336
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
7405
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...
1
7066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.