|
-
Jun 13th, 2005, 09:22 AM
#1
Thread Starter
Addicted Member
[RESOLVED] export table to 2 dimensional array
Hi there
I originally posted this to Daztabase development - got no response - not really sure where it belongs.
I hope I am not being real dull - I have a database table with 3 fields: Item, RunDayOfWeek, Value[boolean] and need to produce a weekly report, ideally exported to an excel spreadsheet.
I have 10 items and a record for each for every day of the Week (e.g. Mon, Tues etc), so at the end of week the table contains 70 records indicating the value foreach item on each day.
I want to export these, ideally to an excel spreadsheet, such that I end up with a 2 dimensional table/array i.e:
Code:
Days
Item Mon Tues Wed Thur etc
1 True False True
2 false true
3 true false
So I need to logically run through the recordset returned from a SELECT * statement and place the value (TRUE or FALSE) from the 3rd field in the correct array index (excel cell).
How best to do this?
Thanks
Kester
-
Jun 13th, 2005, 01:27 PM
#2
-
Jun 14th, 2005, 03:06 AM
#3
Thread Starter
Addicted Member
Re: export table to 2 dimensional array
Many thanks for your quick response. I will take a look at your suggestion.
Kester
-
Jun 27th, 2005, 03:58 AM
#4
Thread Starter
Addicted Member
Re: export table to 2 dimensional array
That is smart - I will modify the app to use this in due course.
Again, many thanks
Kester
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|