I need to evaluate a field's maximum value and then do an if
conditional:
if rs("havesubP") = true and rs("displaygrou p") < MAX then ....
whereas MAX represents the biggest value in the records for the
displaygroup field (an integer datatype). I get an "Either BOF or EOF
is True, or the current record has been deleted.." error if i put any
type of comparison number (of course MAX is not a vbscript keyword)
that is larger than my largest displaygroup value in the dbase , as I
will loop thru all the records once this condition is met.
thanks
chum 3 2899
Toss the recordset into an array. You can loop through it as many times as
you like then.
- Wm
--
William Morris
Product Development, Seritas LLC
Kansas City, Missouri
"Chumley the Walrus" <sp*******@yaho o.com> wrote in message
news:1e******** *************** ***@posting.goo gle.com... I need to evaluate a field's maximum value and then do an if conditional:
if rs("havesubP") = true and rs("displaygrou p") < MAX then ....
whereas MAX represents the biggest value in the records for the displaygroup field (an integer datatype). I get an "Either BOF or EOF is True, or the current record has been deleted.." error if i put any type of comparison number (of course MAX is not a vbscript keyword) that is larger than my largest displaygroup value in the dbase , as I will loop thru all the records once this condition is met.
thanks chum
You need to check for eof in your loop. show the loop code.
--
Mark Schupp
Head of Development
Integrity eLearning www.ielearning.com
"Chumley the Walrus" <sp*******@yaho o.com> wrote in message
news:1e******** *************** ***@posting.goo gle.com... I need to evaluate a field's maximum value and then do an if conditional:
if rs("havesubP") = true and rs("displaygrou p") < MAX then ....
whereas MAX represents the biggest value in the records for the displaygroup field (an integer datatype). I get an "Either BOF or EOF is True, or the current record has been deleted.." error if i put any type of comparison number (of course MAX is not a vbscript keyword) that is larger than my largest displaygroup value in the dbase , as I will loop thru all the records once this condition is met.
thanks chum
pobjRS.Sort = "[FIELD] DESC"
pdblMaxValue = pobjRS.Fields(" FIELD").Value
pobjRS.Sort = vbNullString
Chris.
"Chumley the Walrus" <sp*******@yaho o.com> wrote in message
news:1e******** *************** ***@posting.goo gle.com...
I need to evaluate a field's maximum value and then do an if
conditional:
if rs("havesubP") = true and rs("displaygrou p") < MAX then ....
whereas MAX represents the biggest value in the records for the
displaygroup field (an integer datatype). I get an "Either BOF or EOF
is True, or the current record has been deleted.." error if i put any
type of comparison number (of course MAX is not a vbscript keyword)
that is larger than my largest displaygroup value in the dbase , as I
will loop thru all the records once this condition is met.
thanks
chum This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mr_burns |
last post by:
hi,
how do i do a SELECT statment that will just query a table to find the
row with the maximum of a declared field. for example, if i have a
table of customers and i would like to get the value of the last
customer to register so the SELECT statement would return only one
row, how would i do this?
also, the plan i have is to use a while loop (coz i dont know any
other) to get the colum value of each row:
|
by: |
last post by:
If I need to check if a certain value does exist in a field, and return
either "yes" or "not" which query would be the most effestive?
|
by: Matt |
last post by:
I am running CR 8.5 from a (large) SQL Server db. My aim is to use
crystal enterprise so end users in our sales team can access reports on
demand for a given date range and client so I am trying to keep contact
with the database to a minimum. IE currently processign a report takes
about 10 minutes and involves manually running stored procs in sql
server to produce smaller, client specific temporary tables that CR can
easily cope with. ...
|
by: ckerns |
last post by:
I want to loop thru an array of controls,(39 of them...defaults = 0).
If value is null or non-numeric I want to assign the value of "0".
rowString = "L411" //conrol name
if (isNaN(eval ("document.forms."+rowString+".value")) == true )
{
//this alert works if the value is a letter,i.e,"a"
alert("You have entered an non-numeric value.\nEnter a number
in the appropriate box.");
|
by: Kums |
last post by:
What is the maximum permissible size of a database? Is there any limitation.
What is the maximum # of tablespace's allowed in a database?
Thanks for your response.
| |
by: dixie |
last post by:
Is there a maximum length in VBA of a line containing stuff like the
following:
If password = "1234" or password = "1235" or password = ............... Then
It seems to me that at some stage, I add an extra password onto the end of
the line and it does not work. I assumed it might be 255 characters, but
the line that works is much longer than that.
dixie
|
by: K. Davis |
last post by:
I need to increment the maximum value of a field of a table by 1 when a
form opens a blank record. (e.g.
=max(!![trip_number})
so the logic and references are working at the form level.
I've tried a number of variants tied to the before update event, but
always get the message "The field 'tripmain.trip_number' can't contain a
Null value because the Required property for this field is set to True.
Enter a value in this field."
|
by: Bengt Richter |
last post by:
Has anyone found a way besides not deriving from dict?
Shouldn't there be a way?
TIA
(need this for what I hope is an improvement on the Larosa/Foord OrderedDict ;-)
I guess I can just document that you have to spell it dict(d.items()), but I'd
like to hide the internal shenanigans ;-)
Regards,
Bengt Richter
|
by: Amer Neely |
last post by:
I've got a dynamically built form with checkboxes for each element ( a
list of file names in a directory). I need to grab only those checkboxes
that are checked, so I can then delete those files.
Does each checkbox name have to be unique? I was hoping to just group
them under one name, and select from that array.
PHP is not my native language - I'm coming at this from Perl, so bear
with me, things are a little different in that country.
|
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...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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...
|
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...
|
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...
|
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();...
|
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...
|
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 we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |