0

I have table in MS Access, that has following lookup properties:
Display control: Combobox
Row source type: Value list
Row source: "Option 1";"Option 2";"Option 3"

And I want export this table to Sharepoint. When I use export from Access (External data, more, Sharepoint) this field works on SP without problem. But I need to use VBA and with following code:

DoCmd.TransferDatabase acExport, "WSS", _
 "http://spsite", _
 acTable, "tbFromSP", "exportedTable"

field loses this choices and acts like normal text field. Is somehow possible to run export through VBA and not loose this options?

1 Answer 1

0

I think Lookups in SharePoint are more like #1;Choice1;#2;Choice2; etc so that might be a cause. Let me know if you have already solved this and how you did it.

1
  • I have completely changed the previous code. I used export from Access and saved it. Using VBA, I change XML of this saved export (Access.CurrentProject.ImportExportSpecifications(0).XML) and run DoCmd.RunSavedImportExport. Commented Mar 31, 2015 at 9:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.