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

Record counts

N J
Hi,

How can I get a text box in a form to display how many records have NEWORDER
field as True?

Thanks..

--
Kind Regards,
Customer Services
Blue Bell Trading
Nov 13 '05 #1
4 1413
N J wrote:
Hi,

How can I get a text box in a form to display how many records have NEWORDER
field as True?

Thanks..

See the Help on DCount. Set the controlsource for your textbox to
=dcount("*","yourtable","neworder=true")

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html

Nov 13 '05 #2
N J
"N J" <bl*************@blueyonder.co.uk> wrote in message
news:Gy*******************@fe3.news.blueyonder.co. uk...
Hi,

How can I get a text box in a form to display how many records have
NEWORDER field as True?

Thanks..

--
Kind Regards,
Customer Services
Blue Bell Trading

Hi, Thanks...

That worked, any idea how I can get the first AutoNumber field and the last
autonumber field value's on record that have new order as true.

So it looks like this: Todays orders are 2500 to 2551.

Ta...
Nov 13 '05 #3

"N J" <bl*************@blueyonder.co.uk> wrote in message
news:cY****************@fe1.news.blueyonder.co.uk. ..
"N J" <bl*************@blueyonder.co.uk> wrote in message
news:Gy*******************@fe3.news.blueyonder.co. uk...
Hi,

How can I get a text box in a form to display how many records have
NEWORDER field as True?

Thanks..

--
Kind Regards,
Customer Services
Blue Bell Trading
Hi, Thanks...

That worked, any idea how I can get the first AutoNumber field and the

last autonumber field value's on record that have new order as true.

So it looks like this: Todays orders are 2500 to 2551.

Ta...


DMin and DMax, just like you used DCount

="Todays orders are " & _
dmin("*","yourtable","neworder=true") & " to " & _
dmax("*","yourtable","neworder=true") & "."

Nov 13 '05 #4
N J wrote:
"N J" <bl*************@blueyonder.co.uk> wrote in message
news:Gy*******************@fe3.news.blueyonder.co. uk...
Hi,

How can I get a text box in a form to display how many records have
NEWORDER field as True?

Thanks..

--
Kind Regards,
Customer Services
Blue Bell Trading


Hi, Thanks...

That worked, any idea how I can get the first AutoNumber field and the last
autonumber field value's on record that have new order as true.

So it looks like this: Todays orders are 2500 to 2551.

Ta...

Dmax, Dmin.

Just remember autonumbers have have missing numbers within a range.

Let's say your max autonumber is 50. You open the form and one of the
date fields has a default value of Now(). You go to a new record. This
increments the autonumber to 51. You decide not use this record. The
next time you open the form to a new record the autonumber is 52.
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Steven Bethard | last post by:
I have a list of dictionaries. Each dictionary holds counts of various 'words', e.g.: py> countdicts = I need to select dicts with the constraint that the number of each 'word' totalled...
5
by: yvan | last post by:
Approximately once a month, a client of ours sends us a bunch of comma-delimited text files which I have to clean up and then import into their MS SQL database. All last week, I was using a Cold...
6
by: 6thirty | last post by:
Hi, I've created a stocktaking database using Access XP. This is indexed by two fields - part number and shelf location. I am currently inputting all the data via a form. When I have entered a...
14
by: David Garamond | last post by:
begin; update t set val=val+1; -- 1000 times commit; How many record versions does it create? 1 or 1000? I'm implementing a banner counter which is incremented at least 2-3 millions a day. I...
0
by: Craig O'Connor | last post by:
I am new to DB2, and looking to access a DB2 v3r5 database to determine via SQL Query all the base tables and their corresponding record counts. I assume this information should be able to be...
16
by: usenet | last post by:
I want to be able to use the record numbers of a sub-form, are they available anyhow in VB (Access 2003)? I want to use the sub-form record number as *part* of the primary key for the table...
4
by: pafke | last post by:
Imagine you have a table with the following fields: Customer-id nvarchar(50) status int Records : Customer id status X 1 X 2
12
by: JHNielson | last post by:
I have a simple question, but I can't seem to find the answer. I have this code to count the number of records that pass through a set of processes: It counts how many records go through...
7
by: elainenguyen | last post by:
Hi, I am trying create a query that counts all records which have the field Hypotension=1 (which is Yes), but I only want to count the same customer once. For example: My table has 3 fields:...
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: 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?
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:
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.