Shamil Salakhetdinov
shamil at smsconsulting.spb.ru
Thu Apr 24 05:41:50 CDT 2008
Hi Chris, This VBA code could help you - "Transposing a 2d array" http://www.visualbasic.happycodings.com/Applications-VBA/code30.html "to find a way of converting tblNames to tblTasks": 1) load tblNames using e.g. ADO's GetRows (http://www.triadcenters.com/caspdoc/Ch11_ADO94.html) 2) transpose loaded variant array with the code referred above 3) save transposed array into tblTasks row by row... HTH. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Enright Sent: Thursday, April 24, 2008 1:25 PM To: Access Developers discussion and problem solving Subject: [AccessD] Turn a Table Hi Group Could someone please tell me if there is a simple way to solve this problem ... I started a small project from each end (stupid!) and have ended up with a problem in the middle that I can't seem to solve. I managed to import the sheets from an Excel workbook into Access and have also got the export back to Excel for upload to the web working fine but have ended up with this situation. The imported/export tables (reduced for example) are like this.. tblTasks Task John Jane Bill Mary Simon etc and produces a table like: Task John Jane Bill Mary Simon Task 1 2 1 4 3 0 Task 2 1 0 1 2 4 Task 3 0 4 0 1 1 Etc However, my table for the Form that data is entered on populates a table that can be filtered by name (and date… not shown) and is: tblNames Name Task 1 Task 2 Task 3 ….(25 Tasks) and this table is like this: Name Task1 Task2 Task3 (25 tasks….) John 2 1 0 Jane 1 0 4 Bill 4 1 0 Mary 3 2 1 Simon 0 4 1 My problem is either to find a way of converting tblNames to tblTasks (spent 3 days trying this ) OR find a way of using tblTasks as the input table for my forms so that the individuals can enter their daily work against tasks... Can any one help please? I have to try and get this live by Monday morning and don't want to spend the weekend on it ... :) Regards Chris ____________________________________________________________________________ ________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com