![]() |
Import Excel data to access using VB Script - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Import Excel data to access using VB Script (/Thread-Import-Excel-data-to-access-using-VB-Script) |
Import Excel data to access using VB Script - skancha - 10-08-2009 I need to Export an excel sheet to an access table. I get one new excel sheet every month. I could able to do this with the below script. Option Explicit Code: Dim objADOXDatabase,objExcelConn,objAccessConn,objAccessRS,objExcelRS,strSQL But when i am executing this script i am getting an error in the last line "Record is too large". My excel sheet is containing around 255 columns and 2100 rows. Can anyone tell me how to resolve this error and successfully import excel sheet to access table? Any help is appreciated! Thanks Sheela RE: Import Excel data to access using VB Script - Saket - 10-09-2009 Not sure,I think, this could be a data issue. When you import tables from Excel the field length defaults to 255 characters (or 256 bytes). May be with your fields it is going over the limit. Your need to normalize your data. analyze the data and create multiple tables. Then link to portions of the spreadsheet and append the data correctly to the tables. RE: Import Excel data to access using VB Script - skancha - 10-09-2009 I can not split this into multiple table. I want this in one single table. Is there any way to import excel data as Memo field in access using VB script. Thanks Sheela RE: Import Excel data to access using VB Script - Saket - 10-09-2009 May be, I am not an expert in access but as i can understand if there are too many fields and it goes over the limit then it wont be possible. you will have to use multiple tables. |