473,573 Members | 4,155 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

looping thru table properties will I have to loop twice?

I was going to loop thru the tables and change some properties.
10 <<<<<< prp.value --prp.name = Type
False <<<<prp.value --prp.name = allow zero length
10 <<<<<< prp.value --prp.name = Type
True <<<<prp.value --prp.name = allow zero length
10 <<<<<< prp.value --prp.name = Type
True <<<<prp.value --prp.name = allow zero length
10 <<<<<< prp.value --prp.name = Type
True <<<<prp.value --prp.name = allow zero length
4 <<<<<< prp.value --prp.name = Type
False <<<<prp.value --prp.name = allow zero length

so if the type is 10 --- text field
I want to change allow zero length to true on all of them
the type is 4 --number field has me messed up
it has the allow zero lenght and its set to false but you can't set it
to true on a number field.

they type is read before the allow zero lenght
so do I have to loop thru the properties twice?
check for 10 and then loop thru again and if its a 10 set allow zero
length to true?

thanks this should have been easier than I made it (I think)

jerry

Nov 13 '05 #1
2 1772
yep resume next is a life saver lol

thnks for the tip

jerry
On Wed, 28 Jul 2004 17:36:52 GMT, Chuck Grimsby
<c.*******@worl dnet.att.net.in valid> wrote:

You can look at a property without setting it, you know. You only
need to set it when you're going to have to *do* something to it.
This means that you can look at a different property then the one
you've set (or are about to set).

Another way to deal with this would be to trap the error, ignore it,
and move on.

On Wed, 28 Jul 2004 16:23:45 GMT, sparks <sp****@here.co m> wrote:
I was going to loop thru the tables and change some properties.

<snip>
so if the type is 10 --- text field
I want to change allow zero length to true on all of them
the type is 4 --number field has me messed up
it has the allow zero lenght and its set to false but you can't set it
to true on a number field.
they type is read before the allow zero lenght
so do I have to loop thru the properties twice?
check for 10 and then loop thru again and if its a 10 set allow zero
length to true?
thanks this should have been easier than I made it (I think)


Nov 13 '05 #2
> Another way to deal with this would be to trap the error, ignore it,

In this particular situation it is likely to give you a memory leak
and slow recovery. Still, sometimes that is all you can do, and you
get the memory back when you release the database object.

(david)
"Chuck Grimsby" <c.*******@worl dnet.att.net.in valid> wrote in message
news:dn******** *************** *********@4ax.c om...

You can look at a property without setting it, you know. You only
need to set it when you're going to have to *do* something to it.
This means that you can look at a different property then the one
you've set (or are about to set).

Another way to deal with this would be to trap the error, ignore it,
and move on.

On Wed, 28 Jul 2004 16:23:45 GMT, sparks <sp****@here.co m> wrote:
I was going to loop thru the tables and change some properties.

<snip>
so if the type is 10 --- text field
I want to change allow zero length to true on all of them
the type is 4 --number field has me messed up
it has the allow zero lenght and its set to false but you can't set it
to true on a number field.
they type is read before the allow zero lenght
so do I have to loop thru the properties twice?
check for 10 and then loop thru again and if its a 10 set allow zero
length to true?
thanks this should have been easier than I made it (I think)

--
Ability Is A Good Thing But Stability Is Even Better.

Nov 13 '05 #3

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

Similar topics

2
3983
by: ensnare | last post by:
Hi all, I'm using a database session handler and am looking to loop through data residing in the sessions table to make a 'Users online' array. I've found that using urldecode on the data column gives me a serialized string of varname|datatype:data; for each variable. I'm having a bit of trouble with deserializing the data. I could...
3
2871
by: WC Justice | last post by:
I need to build an UPDATE statement that copies the values of roughly 40 fields from a table that stores standard or default values into a table of specific contracts. There are 8 or so fields in the source table that are not in the destination table. The remaining field names are identical in both tables. How do I create a recordset of the...
5
1788
by: Bruce Lawrence | last post by:
I'm running Access 97 and my modules are looping if someone puts an invalid value in. The setup: 3 macros - get_clock_num, verify_clocknum, append_to_history 3 functions. each in their own module - get_clocks(), verify_clocks(), append() Each macro runs a function from in its corresponding module. Here is my code.
3
1611
by: Lars Netzel | last post by:
I have a Dataset with one table in it. If I need to loop thru that table I know of two ways that I would choose.. 1. Do a "For Each DataRow in Datatable" 2. You create an IEnumerator fron the Table.Rows object. And loop thru that one (a bit more code needed). Questions:
2
6319
by: randy1200 | last post by:
My hope is that somebody has a thought on this, or can point to toward an article that's useful. I have the following: DataSet ds = new DataSet(); ds.ReadXml("MyData.xml"); Each MainTable entry has subtable relations. Here's my current approach: foreach(DataRow row in ds.Tables.Rows {
2
16065
by: pob | last post by:
Whats the difference between using a control or a listbox when looping thru a listbox. In example 1 it dims a listbox and an example 2 it dims a control. Please explain. Thanks in advance Example 1 from Allen Browne MVP Access To use a Multiselect list box for criteria for a report, you need to loop through its ItemsSelected collection...
3
2143
by: chalrav | last post by:
Reading through multiple records, with Loop capability -------------------------------------------------------------------------------- Hi, I have three tables as below: Table: Demand ITEM_ID, QUANTITY Item A, 10
1
16644
by: pds79 | last post by:
Hi everyone, I'm a newbie to the forum. I have an issue and was hoping to get some assistance/ideas: Im trying to read a XML file into two record sets. I can acheive looping through the first level element but i can not loop the the second level (child elements), any ideas?? I need to be able to loop thru each patient record and read...
6
2724
by: mahowe | last post by:
Hi, I have had this problem for a while and have not been able solve it. What im looking at doing is looping thru my patient table and trying to organise the patients in to there admission sequence, so when patient "A" comes in and is treated at my hospital and is discharged and admitted to another Hospital within one day then patient "A" will...
0
7789
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...
0
8037
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. ...
0
8215
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7800
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...
0
6432
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...
1
5605
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...
0
5296
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...
0
3737
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...
1
1325
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.