Does anyone know how I can send variables extracted from userform textboxes in XL to an Access database and enter them in the relevant fields of a new record? Can you create a DDE connection between XL and Access?
One small problem. When I ahev the line: oConn.open after the oConn.connection.string, I get the error message "Operation is not allowed when the object is closed".
SO I moved the oConn.open line above the other line and the error message then read "Data source name not found and no default driver specified"
Seems like it can't run one line without the other first. Both ways.
Also, in the connection.string line, is the data source (c:\test.mdb in your example) meant to be the directory of the database into which I'm sending data?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.