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

Display count of table entries

102 64KB
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

✓ answered by jforbes

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.  

2 1432
Seth Schrock
2,965 Expert 2GB
You could use the DCount() function to count the number of records.
Apr 28 '15 #2
jforbes
1,107 Expert 1GB
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
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
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
by: Sheau Wei | last post by:
i wish to know how to create a dinamically edit table entries .can u help me ?thanks.
1
by: Soumya v s | last post by:
i wants to display all table names in the combo box with php and mysql
0
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.