ms access - Forcing table to save using vba -


so have bit weird problem. need insert values freshly created multivalue lookup field. problem such empty column doesn't have .value parameter. i've noticed opening table, changing anything force pop-up "you need save table, blah blah...". , after saving it, if it's still empty (sic!) property .value in field appears.

i need using vba, tried doing

docmd.open("tablename") docmd.save("tablename")

to force saving after creation, vba complains syntax, though every example found using lines of code.

maybe there's way force appearing .value rather trying force saving table? i'm clueless atm.

----

edit:
managed solve it. instead of dao vba instructions, opened table in design view, saved it, closed table.

the (in case) huge difference opening in design view instead of simple datasheet view.

saving table in 2 views produces 2 different results (with or w/o .value property).

i not sure if code using dao; however, should be. found user had similar problem , user able assist them: creating multi value field through dao works, access has problem saving it.

the difference image you want modify:

.properties.append .createproperty("rowsourcetype", dbtext, "table/query") .properties.append .createproperty("rowsource", dbtext, _                                        "select [last name] employees") 

to

.properties.append .createproperty("rowsourcetype", dbtext, "value list") .properties.append .createproperty("rowsource", dbtext, _                                        "your;values;here") 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -