VBA - moving Sharepoint table with attachments to local tables - ms-access

We are working on archiving data from multiple linked sharepoint tables to local access tables. However they have attachment fields so we are getting the multifield error when our vba is running the Select into statement. Is there a way around this and also preserve the attachment as well? Is there another way to convert the tables with out the select into statement that would be better? I checked but the other questions about this did not have this specific issue.

You did not post if you have anything in attachments fields and if you are trying to preserve data in them.
If not, simply use append query to move data to local table, with selected fields, excluding attachment fields.

Related

Copy tables from one database to another using Alteryx

I have a list of tables that need to copied from one database to another. The list of tables resides in the table in a DB. I am trying to write a Standard Macro to perform this. This is what I have so far:
The macro reads the in list of tables and then reads that using the Dynamic Input. But I am unsure how to write the tables to the second DB. Please advise.
You can do this with a batch macro where each batch will bring in a different table. The Dynamic Input tool will not work because the tables are of different schemas.
The workflow will have a Control Parameter (set to the table name) and updating an Input Data tool. This will then go to an Output Tool that has the "Take File/Table Name from field" option selected.

Load data from multiple data files into multiple tables using single control file

I have 3 data files and 3 tables. Is there any way to enter the data from the data files to their respective tables using only a single control file using parameters.
I know that we can use multiple datafiles to insert data into single table but i want multiple datafiles to insert data into multiple tables.
I have not done it, but you can specify multiple files as long as they are the same layout by using multiple INFILE clauses. Then as long as there is some identifier in the record, you can use multiple INTO TABLE clauses, each with its own WITH clause. See the control file reference for more info. Please let us know how it works out.

Drupal user data storage location

Where does Drupal 7 store user data? I believe our client has been inserting bad data (incorrect characters) copied from MS Word into their Drupal install (for their user list).
How do I export/look at the users to see if any bad characters are in them?
I'm taking a look at the structure of the database in MySQL and I'm not seeing any clear table with the data in it. Is it contained in only one, or multiple tables?
User data is stored in multiple tables one of which is the users table. Any fields that have been added to the user entity will be in the field_data_field_user... table.
If you are using phpMyAdmin or similar interface, you will only be able to immediately see a portion of the tables Drupal has. Use the filter to find "users" and the Users table will appear in the list. There is only one table if there were no modifications for custom user fields.
You can export the table as a CSV and open in a spreadsheet interface, such as Excel; though Excel is not always friendly with UTF-8 if it's not set up to display it. Or you can save the file as a .SQL and view it in a database viewer such as SQLite in Firefox.

Enabling the User to Insert the Data in Access Database

I have created a data model in Access Database.
Tables that are composite parts of the model are loaded with data. Some of the data needs to be loaded manually.
Now I would like to link couple of tables together and give the user the option to insert the missing data in the tables. (I am linking the tables together so that the user doesn't have to work with raw keys, but with the "actual" information that he knows.)
I+ve never worked with Access DB before and therefore I would like to ask you to please instruct and help me on how to accomplish my goal?
The access form wizards are pretty well put together. You can easily setup a form that will allow them to insert data into the table(s).

ACCESS 2010 / SQL: How do you copy a row which has an attachment field?

I want to run a SQL query to copy a row from my table to either the same table or another table.
Whichever method I use, I end up with a message telling me something similar to "You can't run an INSERT INTO query if it contains a multi-value field" (translated from french)
I tried using SELECT * INTO, but the result is the same.
My table is about reports, which can have a revision (hence the row copy), and they can have an attachment like for ex. a pdf file.
so, how do you / can you copy a row which has an attachment field ?
Thanks
I do not have Access 2010 to hand at the moment, but you will find that attachments are stored in hidden system tables as single records and that you need to use that table to copy multiple records, unless you wish to use VBA.
More info: http://office.microsoft.com/en-us/access-help/guide-to-multivalued-fields-HA001233722.aspx?pid=CH100645681033
http://msdn.microsoft.com/en-us/library/bb258184.aspx