473,602 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How Many record. Like to know?

RAW
I'm using ASP.net with vb, Access database and SQL query, I'm trying to
count records that match with a particular criteria after making a loop
statement and after displaying any records.
Does any one of you knows the asp.vb.net script
Nov 18 '05 #1
5 1241
First, in ASP.NET there is no "scripting" . It's all compiled code now.

Second, are you asking for how to do everything you are saying below or just
how to count up how many records matched?

To count how many matched, it's easy...just include your own variable
counter in the loop that gets incremented when you've determined there is a
match.
"RAW" <de****@terra.c om> wrote in message
news:Om******** ******@TK2MSFTN GP11.phx.gbl...
I'm using ASP.net with vb, Access database and SQL query, I'm trying to
count records that match with a particular criteria after making a loop
statement and after displaying any records.
Does any one of you knows the asp.vb.net script

Nov 18 '05 #2
RAW
wooooou
thanks for your effort to treat help mister attitude

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:ux******** ******@TK2MSFTN GP09.phx.gbl...
First, in ASP.NET there is no "scripting" . It's all compiled code now.

Second, are you asking for how to do everything you are saying below or just how to count up how many records matched?

To count how many matched, it's easy...just include your own variable
counter in the loop that gets incremented when you've determined there is a match.
"RAW" <de****@terra.c om> wrote in message
news:Om******** ******@TK2MSFTN GP11.phx.gbl...
I'm using ASP.net with vb, Access database and SQL query, I'm trying to
count records that match with a particular criteria after making a loop
statement and after displaying any records.
Does any one of you knows the asp.vb.net script


Nov 18 '05 #3
There's no attitutude here. I'm trying to help you to understand the
environment you are working in and I'm asking you to clarify your question
so that I can help you get your answer.

Thanks for biting a hand that's trying to help!
"RAW" <de****@terra.c om> wrote in message
news:uT******** ******@tk2msftn gp13.phx.gbl...
wooooou
thanks for your effort to treat help mister attitude

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:ux******** ******@TK2MSFTN GP09.phx.gbl...
First, in ASP.NET there is no "scripting" . It's all compiled code now.

Second, are you asking for how to do everything you are saying below or just
how to count up how many records matched?

To count how many matched, it's easy...just include your own variable
counter in the loop that gets incremented when you've determined there

is a
match.
"RAW" <de****@terra.c om> wrote in message
news:Om******** ******@TK2MSFTN GP11.phx.gbl...
I'm using ASP.net with vb, Access database and SQL query, I'm trying to count records that match with a particular criteria after making a loop statement and after displaying any records.
Does any one of you knows the asp.vb.net script



Nov 18 '05 #4
Lol,

Okay if you have a data within a DataSet and if you only have one table in
that dataset
you can get the count by DataSet.Tables[0].rows.count
[] could be ( ) in vb.net
and then you can iterate through the dataset table rows and get individual
columns to display

Regards,

HD
PS: Its better to be clear when asking a question

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:uI******** ******@TK2MSFTN GP12.phx.gbl...
There's no attitutude here. I'm trying to help you to understand the
environment you are working in and I'm asking you to clarify your question
so that I can help you get your answer.

Thanks for biting a hand that's trying to help!
"RAW" <de****@terra.c om> wrote in message
news:uT******** ******@tk2msftn gp13.phx.gbl...
wooooou
thanks for your effort to treat help mister attitude

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:ux******** ******@TK2MSFTN GP09.phx.gbl...
First, in ASP.NET there is no "scripting" . It's all compiled code now.
Second, are you asking for how to do everything you are saying below
or
just
how to count up how many records matched?

To count how many matched, it's easy...just include your own variable
counter in the loop that gets incremented when you've determined there

is
a
match.
"RAW" <de****@terra.c om> wrote in message
news:Om******** ******@TK2MSFTN GP11.phx.gbl...
> I'm using ASP.net with vb, Access database and SQL query, I'm trying

to > count records that match with a particular criteria after making a loop > statement and after displaying any records.
> Does any one of you knows the asp.vb.net script
>
>



Nov 18 '05 #5
RAW
Thanks this work perfect

"Hermit Dave" <he************ @CAPS.AND.DOTS. hotmail.com> wrote in message
news:ed******** *****@tk2msftng p13.phx.gbl...
Lol,

Okay if you have a data within a DataSet and if you only have one table in
that dataset
you can get the count by DataSet.Tables[0].rows.count
[] could be ( ) in vb.net
and then you can iterate through the dataset table rows and get individual
columns to display

Regards,

HD
PS: Its better to be clear when asking a question

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:uI******** ******@TK2MSFTN GP12.phx.gbl...
There's no attitutude here. I'm trying to help you to understand the
environment you are working in and I'm asking you to clarify your question
so that I can help you get your answer.

Thanks for biting a hand that's trying to help!
"RAW" <de****@terra.c om> wrote in message
news:uT******** ******@tk2msftn gp13.phx.gbl...
wooooou
thanks for your effort to treat help mister attitude

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:ux******** ******@TK2MSFTN GP09.phx.gbl...
> First, in ASP.NET there is no "scripting" . It's all compiled code now. >
> Second, are you asking for how to do everything you are saying below or just
> how to count up how many records matched?
>
> To count how many matched, it's easy...just include your own variable > counter in the loop that gets incremented when you've determined

there is
a
> match.
>
>
> "RAW" <de****@terra.c om> wrote in message
> news:Om******** ******@TK2MSFTN GP11.phx.gbl...
> > I'm using ASP.net with vb, Access database and SQL query, I'm
trying to
> > count records that match with a particular criteria after making a

loop
> > statement and after displaying any records.
> > Does any one of you knows the asp.vb.net script
> >
> >
>
>



Nov 18 '05 #6

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

Similar topics

5
14928
by: Derek Cooper | last post by:
I hope you can help me. I posted this in the microsoft sql server newsgroup a few days ago and got no response so I thought I'd try here. If I can provide any clarification I'll be glad to do so. I'm trying to calculate a column based on the value of the previous record. I'm not very experienced with SQL-Server. I'm using the following table: CREATE TABLE tblPayment (
1
1691
by: Ben | last post by:
I have a Tabular form bound to a table. The purpose of this form is to get times from a timer and record them in a field. The timer dumps the time automatically through a serial port. When the time is recorded it goes to the next record. Sometimes a user may have to skip a record and come back. All of this is no problem and works great. I have 3 buttons that will set any penalties in a record. The person just needs to hit a button to...
1
3004
by: Skully Matjas | last post by:
Thank you for getting back to me. I am very new at this so i didnot understand what you said, here i will give as much cetails as possible: 1) The combo box i am using is combox39 2) I imported a a table of parents of a school (it has name,address,#, etc...) 3) I nead to input a ID Number (ralphs card) for some of the parents 4) The ID numbers do not go inorder of the parents, and i am not being handed the id numbers in order 4) I want...
7
2947
by: Ilan Sebba | last post by:
I am trying to add a record using SQL. My problem is that the primary keys are foreign keys, and these foreign keys are autonumbers. I therefore do not know the primary keys of the record I am trying to insert. I therefore do not think that I can use the sql "Insert Into" command. Here is a simplified illustration of my tables: tblFather NaturalKey1 NatuarlKey2
3
3572
by: Steven Stewart | last post by:
Hi there, I have posted about this before, but yet to arrive at a solution. I am going to try to explain this better. I have an Employees table and a Datarecords table (one-to-many relationship). I have fields called InventoryOut and BalanceEnd that are calculated on the fly for reports and when displayed on forms (they are not part of any table). I have another field called "BalCarFor" (Balance Carried Forward) that is part of the...
5
2440
by: Mary Litten | last post by:
Hi - (This is my very first post) I have gotten to this point of registering to post because I have been spinning my wheels so long, I believe I am all caught up in the weeds. (and mud) I have a form, that has several tabs. On one tab, I have a subform (wr_completion_subform). This subform is bound to a table (wr_completion_table). On the subform, I have a button from which I have added code to email a report of the completion data...
6
5645
by: DebbieG | last post by:
I have created a database for a client and was told that it was to be a one-user database. Well, you know the next statement ... now they want 3 people to be able to use the database. (FYI, I have never created a database for multiusers. I've done some searching but not finding what I want.) I have split the database. In Tools, Options, I have set the following: Default open mode = Shared Default record locking = Edited Record
3
2215
by: domcatanzarite | last post by:
How would one create a button that on click advances the form to the next "non recurring record" as opposed to the next record. The field the button needs to que from has groups of duplicate values. I need it to advance the form to the next group of duplicate values not just the next record.
10
15314
by: sara | last post by:
Hi - I have been struggling with solution ideas for this now for almost 2 weeks, and have not been able to figure this out. I have a user who creates a Purchase Order (tblPOData). In some circumstances, this or another user must create an invoice to go with the PO (I know - that makes no sense, but this is the business case). I have the user go to a form to create the invoice:
12
3268
by: tekctrl | last post by:
Environment; Win2K PC with 1Gb of RAM and plenty of HD space running Access 2002 Issue; Access presents a blank data entry form in the Forms view when the New Record icon is used. However, it won't allow any fields to have data entered into them. I can edit & save existing records without problem. When I go into the Tables view, I can add records and data ok and save without problem. I go back into the Table and I can see the data. ...
0
7993
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7920
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8268
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6730
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5867
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3900
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.