473,385 Members | 1,192 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,385 software developers and data experts.

Store Array to Access w/o Parsing Each Row

Hello all,

Is there anyway to store an array to MS Access 2002 without parsing the
entire array row-by-row. For example, Oracle allows you to store BLOBs
(binary large objects). I would like to be able to say in VB/VBA

With rstName
.AddNew
!fieldName = ArrayName
.Update
.Close
End With

Any ideas?

Thanks!!

Trip

Jan 19 '06 #1
2 2753
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to strict SQL design principles you shouldn't have more than
one item per cell (IOW, each array element should be in a separate
column).

But, if you insist.... Use the Split() function to break out each
element of the array into a comma-delimited string. E.g.:

!fieldName = Split(ArrayName, ",")

The comma in quotes indicates that the comma should be used sas the
element separator.

Make sure the column size can accomodate the resulting string.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQ9AFEoechKqOuFEgEQKmqgCgkPBRdct/EzoRfHE2ie955FJBMDsAn0I+
nNHUgJZsg8voQcQxHLN+HTEB
=scOO
-----END PGP SIGNATURE-----
Trip wrote:
Hello all,

Is there anyway to store an array to MS Access 2002 without parsing the
entire array row-by-row. For example, Oracle allows you to store BLOBs
(binary large objects). I would like to be able to say in VB/VBA

With rstName
.AddNew
!fieldName = ArrayName
.Update
.Close
End With

Any ideas?

Jan 19 '06 #2
You can use the very same code you posted as long as the field was defined
as a Long Binary field. You are then working with a field defined as a BLOB.
There is code in the Acces help file and on the MS KB for reading and
writing BLOB fields but for small amounts of data that are not across a
Network I would simply use the came code/logic that you posted..

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Trip" <tr**@consultant.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hello all,

Is there anyway to store an array to MS Access 2002 without parsing the
entire array row-by-row. For example, Oracle allows you to store BLOBs
(binary large objects). I would like to be able to say in VB/VBA

With rstName
.AddNew
!fieldName = ArrayName
.Update
.Close
End With

Any ideas?

Thanks!!

Trip

Jan 19 '06 #3

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

Similar topics

12
by: jacob nikom | last post by:
Hi, I would like to store XML files in MySQL. What is the best solution: 1. Convert it to string and store it as CLOB/text 2. Serialize it and store as byte array 3. Flatten it out and create...
2
by: Nelson Xu | last post by:
Hi All Does anyone knows how to pass an array from .net application to oracle stored procedure Thank you in advance Nelson
12
by: arkobose | last post by:
my earlier post titled: "How to input strings of any lengths into arrays of type: char *array ?" seems to have created a confusion. therefore i paraphrase my problem below. consider the...
1
by: Andre Ranieri | last post by:
I'm having trouble programatically inserting an Excel file into an Image column in our CRM package's SQL 2000 database. The function appears to work ok, but when I attempt to access the file through...
15
by: Geoff Cox | last post by:
Hello, Can I separately declare and initialize a string array? How and where would I do it in the code below? It was created using Visual C++ 2005 Express Beta 2 ... In C# I would have ...
7
by: Andrew C | last post by:
Hi, folks. I've encountered what seems to me to be something of an oddity while playing around with XML parsing in PHP, and I wondered if any of you might be able to clear up my confusion... ...
11
by: Tim Hunter | last post by:
Hi I am using WinXP and Access 2003 Is it possible to store the field names of a table in an array and then loop through the array and update the table using the field names stored in the array? I...
10
by: Raj | last post by:
I need a VB function to return array of collections like Private Type Employee empname as string address as string salary as integer deptno as integer End Type dim employees() as Employee
6
by: snsanju | last post by:
Hi, I am trying to write a program to fetch the HTML table values and store in the array as they are in the table. <table> <tr><td>value1</td><td>value2</td><td>value3</td></tr>...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.