473,473 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Array element appears to lose value (Access 2002, XP SP2)

Hi there,
I have an multi-dimensional array (5,i) (5 'columns', i 'rows') where
i is the number of records in the recordset that I use to populate the
array and hence the number of 'rows' in the array . I want to use the
array repeatedly to provide information elsewhere in my app. When I
first call on the Array values in 'columns' 1 to 5 in 'rows' 1 to i
they are all present as expected.

On the second time of calling on the array (ie starting at i=1 again),
one of the array elements (5,i) returns an empty string "" but ALL of
the other array elements ie (1,i), (2,i) etc are still populated.

I have set Option Base 1

Any thoughts/suggestions/prior experience?

TIA,
Jack
Nov 13 '05 #1
1 1419
On 16 Feb 2005 04:24:28 -0800, ky*****@yahoo.com (Jack) wrote:

In many cases you can use the recordset itself to hold data, and get
rid of the array altogether.

-Tom.

Hi there,
I have an multi-dimensional array (5,i) (5 'columns', i 'rows') where
i is the number of records in the recordset that I use to populate the
array and hence the number of 'rows' in the array . I want to use the
array repeatedly to provide information elsewhere in my app. When I
first call on the Array values in 'columns' 1 to 5 in 'rows' 1 to i
they are all present as expected.

On the second time of calling on the array (ie starting at i=1 again),
one of the array elements (5,i) returns an empty string "" but ALL of
the other array elements ie (1,i), (2,i) etc are still populated.

I have set Option Base 1

Any thoughts/suggestions/prior experience?

TIA,
Jack


Nov 13 '05 #2

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

Similar topics

58
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of...
4
by: Br | last post by:
We're using an Access2000 ADP with an SQL2000 back-end. Because SQL2000 was released after Access2000 you need to be running Access2000 SP1 (2 or 3) for it to work properly. Is there an easy way...
6
by: Eric Smith | last post by:
Is a structure containing an incomplete array as its last element (per paragraph 2 of section 6.7.2.1 of ISO/IEC 9899:1999 (E)) itself an incomplete type? That appears to be indicated by paragraph...
11
by: truckaxle | last post by:
I am trying to pass a slice from a larger 2-dimensional array to a function that will work on a smaller region of the array space. The code below is a distillation of what I am trying to...
204
by: Alexei A. Frounze | last post by:
Hi all, I have a question regarding the gcc behavior (gcc version 3.3.4). On the following test program it emits a warning: #include <stdio.h> int aInt2 = {0,1,2,4,9,16}; int aInt3 =...
2
by: Frav | last post by:
The Reps team have been experiencing that Access 2002 unexpectedly quits while working and also lots of Corruption Failures and "Record lock can not update" messages since the upgrade from...
11
by: rayreeves | last post by:
How do I declare an array of references to the elements of an array of values? Ray
13
yolenman
by: yolenman | last post by:
Hello - This is my first posting to this group, so please bear with me. Also note, that while I'm intelligent, databases are not in my field of knowledge. I'm working with a small limousine...
2
by: Dedalus | last post by:
If I want to retrieve a full version information for an ms access databases, I use (from vb6 code) the "Access.Application" object and SysCmd method. Whit the number returned by the method I can...
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
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...
1
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,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
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.