![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm relatively new when using Access so bear with me. I have an Excel file with 4 spreadsheets, each with multiple columns Tbl.Schools SchoolName SchoolCity SchoolPop etc. Tbl.Counts SchoolName EquipmentLoc (where in large playground is equipment located...N, S, E,W) EquipmentType (is it a slide, jungle gym, etc...there are about 60 different possibilities) Count1 (60 sec count of how many children were on a piece of equipment at t1) Count2 (60 sec count of how many children were on same piece equipment at t2) Count3 Date etc. Tbl.Depth SchoolName EquipmentLoc (same as above) EquipmentType (same as above) EquipmentPos (what position on equipment is depth being measured. i.e left side monkey bars or right) Depth1 (measure how deep surface is below certain pieces equipment) DateDepth1 Depth2 DateDepth2 Depth3 DateDepth3 etc Tbl.Height SchoolName EquipmentLoc EquipmentType EquipmentPos Height (measure how far distance is between certain pieces equipment and ground) DateHeight I am having trouble grasping how to divide these four spreadsheets into access tables in order that the data is properly normalized in 3NF, while still allowing for proper relationships to be made in order to ensure referential integrity between tables. I find myself in a situation where I'm having to put SchoolName, EquipmentLoc, EquipmentType and EquipmentPos in multiple tables; but if these data appear in multiple locations in the db it implies it is not properly normalized...right? How should I arrange the data into tables so that they are properly normalized? Any help in setting up these tables would be greatly appreciated. Chris |
#3
| |||
| |||
|
|
Hi, I'm relatively new when using Access so bear with me. I have an Excel file with 4 spreadsheets, each with multiple columns Tbl.Schools SchoolName SchoolCity SchoolPop etc. Tbl.Counts SchoolName EquipmentLoc (where in large playground is equipment located...N, S, E,W) EquipmentType (is it a slide, jungle gym, etc...there are about 60 different possibilities) Count1 (60 sec count of how many children were on a piece of equipment at t1) Count2 (60 sec count of how many children were on same piece equipment at t2) Count3 Date etc. Tbl.Depth SchoolName EquipmentLoc (same as above) EquipmentType (same as above) EquipmentPos (what position on equipment is depth being measured. i.e left side monkey bars or right) Depth1 (measure how deep surface is below certain pieces equipment) DateDepth1 Depth2 DateDepth2 Depth3 DateDepth3 etc Tbl.Height SchoolName EquipmentLoc EquipmentType EquipmentPos Height (measure how far distance is between certain pieces equipment and ground) DateHeight I am having trouble grasping how to divide these four spreadsheets into access tables in order that the data is properly normalized in 3NF, while still allowing for proper relationships to be made in order to ensure referential integrity between tables. I find myself in a situation where I'm having to put SchoolName, EquipmentLoc, EquipmentType and EquipmentPos in multiple tables; but if these data appear in multiple locations in the db it implies it is not properly normalized...right? How should I arrange the data into tables so that they are properly normalized? Any help in setting up these tables would be greatly appreciated. Chris |
#4
| |||
| |||
|
|
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 |
#5
| |||
| |||
|
|
"fi.or.jp.de" <fi.or.jp... (AT) gmail (DOT) com> wrote in message news:68383386-8400-4ec9-a5cd-982bef4ca01e (AT) m20g2000prc (DOT) googlegroups.com... 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 :-) |
#6
| |||
| |||
|
|
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 - Edit>Paste 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. |
#7
| |||
| |||
|
|
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 - Edit>Paste 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 needto 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 |
#8
| |||
| |||
|
|
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" <p... (AT) stantonfamily (DOT) co.uk> 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 - Edit>Paste 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 anddate 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. Creatingthese 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 - |
#9
| |||
| |||
|
|
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 <jnorvi... (AT) gmail (DOT) com> 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" <p... (AT) stantonfamily (DOT) co.uk> 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 - Edit>Paste 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 forexample 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 - |
#10
| |||
| |||
|
|
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 <austris.bahanovs... (AT) gmail (DOT) com> 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 <jnorvi... (AT) gmail (DOT) com> 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" <p... (AT) stantonfamily (DOT) co.uk> 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 - Edit>Paste 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 lotof duplication (without any details, it is is impossible to say). So for example if your Excel sheet has a Product, quantity & date bought, quantityand 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 - |
![]() |
| Thread Tools | |
| Display Modes | |
| |