![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
They have an excel spreadsheet with 200 variables and 200 descriptions I can import this into access to have it for work. I need to make a new table with the variables and descriptions from this table how would I do that? the variables are already there but I don't know how to write the descriptions to the description of the variables. I asked and got a new excel spreadsheet with more into....NOT MUCH HELP LOL this time they gave me variable name, description and format(text or int) can someone tell he how I would write this to a new table? |
#3
| |||
| |||
|
|
If using Access 2003 or older, do it like this: Using the Query Builder, create a new Query, including all Fields from the existing Table, on the menu, under Query, choose Make Table, and when prompted enter the name you want for the new Table, then execute this Query by clicking the exclamation point button in the toolbar. If you are using Access 2007 or newer, the Make Table Query is still available, but user interface is different so you'll either have to look it up in Help or find the equivalent functions in The Ribbon interface -- perhaps someone else can give you details. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Table1 with 200 variables Table2 with 2 variables variablename and description each one has 200 names and 200 descriptions I have to match the variables in the table 1 with the variablename in table 2 But I am not sure about having 2 tables open read from rst1 and write to rst2 ??? set rst1 as db.openrecordset("codebook") set rst2 as db.openrecordset("newtest") Ok how do I loop thru rst1 and compare to rst2 If Rst1.variable = rst2.variablename Then Fld.name = rst2.variablename strDescrip = rst2.description Then do this to rst1 SetPropertyDAO(fld, "Description",dbText, strDescrip) table1 bob text blank fred text blank table2 variable description bob this is bob fred this is fred not sure if this will support ascii spaces and tabs |
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |