Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I have working on Excel to Access updation. I have unique number in column A. I want to update from Excel to Access, As I have more than 10,000 records. Please help me how to achieve this. Thanks |
#2
![]()
Posted to comp.databases.ms-access,microsoft.public.access,microsoft.public.excel.programming
|
|||
|
|||
![]()
"fi.or.jp.de" wrote in message
... Hi All, I have working on Excel to Access updation. I have unique number in column A. I want to update from Excel to Access, As I have more than 10,000 records. Please help me how to achieve this. Thanks You can also try posting your question to comp.databases.ms-access or microsoft.public.access. -- Clif McIrvin (clare reads his mail with moe, nomail feeds the bit bucket :-) |
#3
![]()
Posted to comp.databases.ms-access,microsoft.public.access,microsoft.public.excel.programming
|
|||
|
|||
![]()
Lots of ways to achieve that - the simplest (and not automated) is to:
- select the range of your interest - open the target table in MsAccess - EditPaste Append Done. Another way is to create a linked table in access (New Table Linked Table) and then link it to the Excel file of your interest. It all really depends on what exactly you need to achieve. On Jan 6, 1:46*am, "Clif McIrvin" wrote: "fi.or.jp.de" wrote in message ... Hi All, I have working on Excel to Access updation. I have unique number in column A. I want to update from Excel to Access, As I have more than 10,000 records. Please help me how to achieve this. Thanks You can also try posting your question to comp.databases.ms-access or microsoft.public.access. -- Clif McIrvin (clare reads his mail with moe, nomail feeds the bit bucket :-) |
#4
![]()
Posted to comp.databases.ms-access,microsoft.public.access,microsoft.public.excel.programming
|
|||
|
|||
![]()
On 06/01/2011 09:02:18, AB wrote:
Lots of ways to achieve that - the simplest (and not automated) is to: - select the range of your interest - open the target table in MsAccess - EditPaste Append Done. Another way is to create a linked table in access (New Table Linked Table) and then link it to the Excel file of your interest. It all really depends on what exactly you need to achieve. Hi All, I have working on Excel to Access updation. I have unique number in column A. I want to update from Excel to Access, As I have more than 10,000 records. Please help me how to achieve this. Thanks Clif McIrvin I think you are oversimplifying the problem. With 10,000 lines in the Excel sheet, there must be a hell of a lot of duplication (without any details, it is is impossible to say). So for example if your Excel sheet has a Product, quantity & date bought, quantity and date sold and you have just recorded the tranactions day by day, you will need to create 2 Access tables, 1 for product and 1 for bought & sold. Creating these tables can be done as Austris suggests. If you set the Product descriptipn as indexed(No Duplicates) then each product will only occur once. The fun bit comes when you have to go through all the product descriptions and manually realise that "gren pepper" is a typo for "green pepper" and you have to transfer the transactions for "gren pepper" to "green pepper" before you can delete the former. Excel is for processing figures - Access is for storing & manipupulating data. Phil |
#5
![]()
Posted to comp.databases.ms-access,microsoft.public.access,microsoft.public.excel.programming
|
|||
|
|||
![]()
Meanwhile, here is a good explanation of linking Excel and Access
programmatically: http://www.excelguru.ca/node/18 I built a similar interface for users, and after this experience recommend limiting the number of rows a user may edit/insert at a time. Additionally, if both insert and update functionality are required, I can share my approach to that -- perhaps not beautiful, but functional. jn On Jan 6, 11:22*am, "Phil" wrote: On 06/01/2011 09:02:18, AB wrote: Lots of ways to achieve that - the simplest (and not automated) is to: - select the range of your interest - open the target table in MsAccess - EditPaste Append Done. Another way is to create a linked table in access (New Table Linked Table) and then link it to the Excel file of your interest. It all really depends on what exactly you need to achieve. Hi All, I have working on Excel to Access updation. I have unique number in column A. I want to update from Excel to Access, As I have more than 10,000 records. Please help me how to achieve this. Thanks Clif McIrvin I think you are oversimplifying the problem. With 10,000 lines in the Excel sheet, there must be a hell of a lot of duplication (without any details, it is is impossible to say). So for example if your Excel sheet has a Product, quantity & date bought, quantity and date sold and you have just recorded the tranactions day by day, you will need to create 2 Access tables, 1 for product and 1 for bought & sold. Creating these tables can be done as Austris suggests. If you set the Product descriptipn as indexed(No Duplicates) then each product will only occur once. The fun bit comes when you have to go through all the product descriptions and manually realise that "gren pepper" is a typo for "green pepper" and you have to transfer the transactions for "gren pepper" to "green pepper" before you can delete the former. Excel is for processing figures - Access is for storing & manipupulating data. Phil |
#6
![]()
Posted to comp.databases.ms-access,microsoft.public.access,microsoft.public.excel.programming
|
|||
|
|||
![]()
Neat code, Jeff.
A question, though - is there any particular/technical reason why you use "rst.Open INSERT..." as oppose to "cnt.Execute INSERT..."? Wouldn't it do the same thing just with one variable less? On Jan 7, 12:10*pm, Jeff wrote: Meanwhile, here is a good explanation of linking Excel and Access programmatically:http://www.excelguru.ca/node/18 I built a similar interface for users, and after this experience recommend limiting the number of rows a user may edit/insert at a time. Additionally, if both insert and update functionality are required, I can share my approach to that -- perhaps not beautiful, but functional. jn On Jan 6, 11:22*am, "Phil" wrote: On 06/01/2011 09:02:18, AB wrote: Lots of ways to achieve that - the simplest (and not automated) is to: - select the range of your interest - open the target table in MsAccess - EditPaste Append Done. Another way is to create a linked table in access (New Table Linked Table) and then link it to the Excel file of your interest. It all really depends on what exactly you need to achieve. Hi All, I have working on Excel to Access updation. I have unique number in column A. I want to update from Excel to Access, As I have more than 10,000 records. Please help me how to achieve this. Thanks Clif McIrvin I think you are oversimplifying the problem. With 10,000 lines in the Excel sheet, there must be a hell of a lot of duplication (without any details, it is is impossible to say). So for example if your Excel sheet has a Product, quantity & date bought, quantity and date sold and you have just recorded the tranactions day by day, you will need to create 2 Access tables, 1 for product and 1 for bought & sold. Creating these tables can be done as Austris suggests. If you set the Product descriptipn as indexed(No Duplicates) then each product will only occur once. The fun bit comes when you have to go through all the product descriptions and manually realise that "gren pepper" is a typo for "green pepper" and you have to transfer the transactions for "gren pepper" to "green pepper" before you can delete the former. Excel is for processing figures - Access is for storing & manipupulating data. Phil- Hide quoted text - - Show quoted text - |
#7
![]()
Posted to comp.databases.ms-access,microsoft.public.access,microsoft.public.excel.programming
|
|||
|
|||
![]()
Ah, I shouldn't get credit for the neatness of Ken's code -- that's
Ken Puls's website. (About Ken: http://www.excelguru.ca/node/16) However, reviewing my own spaghetti code I did use Execute (saw Ken's page later): SQL = 'long insert or update query CMD.CommandText = SQL CMD.CommandType = adCmdUnknown 'code to highlight row to be inserted... CMD.Execute ....and I'm handling ADO error codes using an On Error handler. While I can't remember the specific reason for specifying CommandType, it had something to do with not knowing the exact context of all SQL statements the interface could build -- I don't update every field in each table, for example, and the SQL string may be either an insert or update (if a particular "key" column is populated, for example). One of the proper gurus on this list can go into detail there. Cheers, Jeff On Jan 7, 3:05*pm, AB wrote: Neat code, Jeff. A question, though - is there any particular/technical reason why you use "rst.Open INSERT..." as oppose to "cnt.Execute INSERT..."? Wouldn't it do the same thing just with one variable less? On Jan 7, 12:10*pm, Jeff wrote: Meanwhile, here is a good explanation of linking Excel and Access programmatically:http://www.excelguru.ca/node/18 I built a similar interface for users, and after this experience recommend limiting the number of rows a user may edit/insert at a time. Additionally, if both insert and update functionality are required, I can share my approach to that -- perhaps not beautiful, but functional. jn On Jan 6, 11:22*am, "Phil" wrote: On 06/01/2011 09:02:18, AB wrote: Lots of ways to achieve that - the simplest (and not automated) is to: - select the range of your interest - open the target table in MsAccess - EditPaste Append Done. Another way is to create a linked table in access (New Table Linked Table) and then link it to the Excel file of your interest. It all really depends on what exactly you need to achieve. Hi All, I have working on Excel to Access updation. I have unique number in column A. I want to update from Excel to Access, As I have more than 10,000 records. Please help me how to achieve this. Thanks Clif McIrvin I think you are oversimplifying the problem. With 10,000 lines in the Excel sheet, there must be a hell of a lot of duplication (without any details, it is is impossible to say). So for example if your Excel sheet has a Product, quantity & date bought, quantity and date sold and you have just recorded the tranactions day by day, you will need to create 2 Access tables, 1 for product and 1 for bought & sold. Creating these tables can be done as Austris suggests. If you set the Product descriptipn as indexed(No Duplicates) then each product will only occur once. The fun bit comes when you have to go through all the product descriptions and manually realise that "gren pepper" is a typo for "green pepper" and you have to transfer the transactions for "gren pepper" to "green pepper" before you can delete the former. Excel is for processing figures - Access is for storing & manipupulating data. Phil- Hide quoted text - - Show quoted text - |
#8
![]()
Posted to comp.databases.ms-access,microsoft.public.access,microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for taking the time to respond!
Cudos then goes to Ken. A. On Jan 8, 9:04*am, Jeff Norville wrote: Ah, I shouldn't get credit for the neatness of Ken's code -- that's Ken Puls's website. *(About Ken:http://www.excelguru.ca/node/16) However, reviewing my own spaghetti code I did use Execute (saw Ken's page later): SQL = 'long insert or update query CMD.CommandText = SQL CMD.CommandType = adCmdUnknown 'code to highlight row to be inserted... CMD.Execute ...and I'm handling ADO error codes using an On Error handler. While I can't remember the specific reason for specifying CommandType, it had something to do with not knowing the exact context of all SQL statements the interface could build -- I don't update every field in each table, for example, and the SQL string may be either an insert or update (if a particular "key" column is populated, for example). *One of the proper gurus on this list can go into detail there. Cheers, Jeff On Jan 7, 3:05*pm, AB wrote: Neat code, Jeff. A question, though - is there any particular/technical reason why you use "rst.Open INSERT..." as oppose to "cnt.Execute INSERT..."? Wouldn't it do the same thing just with one variable less? On Jan 7, 12:10*pm, Jeff wrote: Meanwhile, here is a good explanation of linking Excel and Access programmatically:http://www.excelguru.ca/node/18 I built a similar interface for users, and after this experience recommend limiting the number of rows a user may edit/insert at a time. Additionally, if both insert and update functionality are required, I can share my approach to that -- perhaps not beautiful, but functional. jn On Jan 6, 11:22*am, "Phil" wrote: On 06/01/2011 09:02:18, AB wrote: Lots of ways to achieve that - the simplest (and not automated) is to: - select the range of your interest - open the target table in MsAccess - EditPaste Append Done. Another way is to create a linked table in access (New Table Linked Table) and then link it to the Excel file of your interest. It all really depends on what exactly you need to achieve. Hi All, I have working on Excel to Access updation. I have unique number in column A. I want to update from Excel to Access, As I have more than 10,000 records. Please help me how to achieve this. Thanks Clif McIrvin I think you are oversimplifying the problem. With 10,000 lines in the Excel sheet, there must be a hell of a lot of duplication (without any details, it is is impossible to say). So for example if your Excel sheet has a Product, quantity & date bought, quantity and date sold and you have just recorded the tranactions day by day, you will need to create 2 Access tables, 1 for product and 1 for bought & sold. Creating these tables can be done as Austris suggests. If you set the Product descriptipn as indexed(No Duplicates) then each product will only occur once. The fun bit comes when you have to go through all the product descriptions and manually realise that "gren pepper" is a typo for "green pepper" and you have to transfer the transactions for "gren pepper" to "green pepper" before you can delete the former. Excel is for processing figures - Access is for storing & manipupulating data. Phil- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Access to Excel: Identify attachment field in access database | Excel Programming | |||
Trust Access to Visual Basic Project - Access to Excel and back | Excel Programming | |||
How do I access the access data via Excel 2002 with auto update ? | Excel Programming | |||
Importing data from Access to Excel, but I need to vary the table from Access | Excel Programming | |||
export access to excel. change access & update excel at same time | Excel Discussion (Misc queries) |