Hi, I thought I was done, here but have a couple of questions ... I may have answered them partly myself..
So I am getting on “super Billy Ho Go good” checking out bringing in a single very long column from a closed Workbook data file.. ( with Microsoft Queery Stuff ). The key to the thing working as I wanted was a Command Text code line like this ,
Now
Questions:
_1) Command Text code line for all columns aka. or have I hit a fundamental 255 column limit..
In addition to a long column, I want to get the first 20 or so rows. The macro recorder gives me something of this form if I laboriously select every column heading...: -
So I thought maybe that this would give me for example the first and third columns for 21 rows ( back to front for fun )
and it does
_ I can have going on for 4000 columns in some data files .... I don’t mind filling up the area in the VB Editor code window where you scroll to, to the right with all the headings. In fact, I am quite partial to that. ... .. but I know I shouldn’t really, .. lol.. , so I thought I had better find a Command Text code line For all columns
I have played around with COLUMNS and * bits but I can’t quite seem to it hit on the correct code syntax......... _....
_.... Or maybe I did while preparing this post._.... This almost worked
. - But it only got me 255 columns. When I tried to google on this I could not get a straight answer. There seemed to be discussion of a sql ODBC limit of around 255 columns. But I am not quite sure how that translates into English***
Can anyone shed any light on this
***_2) It appears that the general thing that I am doing here is a ODBC thingy. A few hours into reading up on this I am not much the wiser, - I do not understand most of the computer jargon... So_..
_..Is there coincidentally anyone out there who both
_2a) is experienced and educated enough to have a good understand of what ODBC is , but also
_2b) who has not yet forgotten how to speak in the English that a computer illiterate like me could understand. If so is it possible to explain it to me. I am mainly interested in understanding as far as I can in terms of what actually goes on in the ODBC part of my code, ( whatever bit that is – I would guess at the .Refresh .
I would like to try to understand a bit , so that when it goes wrong later, and I post asking for help, I might be able to say a little bit more than – .... .. Errr... it broke, can you fix it please... Maybe some emphasis could be put in any explanation as what sort of things can cause problems with it working and whether you think it would likely still be available in the future , if that is not a silly question
I stress I am mainly interested in the Microsoft Queer way of doing it in this Thread as a comparison against all the other many ways I am considering in parallel .. ( although I am beginning to get the feel that this sql stuff comes in ADO stuff, which I am starting to look at as well just now... )
Thanks
Alan
I have stripped down and ‘commented bits of my main code and added a simple Call code,
Sub DoAQuickTest
So if it helps to explain what I am doing , you can run that code and you will see what I am trying to do
I want 21 rows x 1767 ( ideally 1767 even though there is entries only to 1766 )
you need this data File: “DBSept2016 - first AlanSucces.xlsx” http://imgur.com/D9knusB
Download File: https://app.box.com/s/j4ssuud642l1dr5tp689a080y7ustl7t
That file above needs to be closed and in the same Folder as this file where the data goes , ( actually that data is deleted after the data is put in an Array , which is the final goal of what I want ) : “WBAccestTimeTest1.xlsm” Download File: https://app.box.com/s/vj2z43orwbobv0kpv0mwdcw9vnt096jl This file also has the code in it in normal code module “Scrap”
Bookmarks