Hi
I've a problem creating and executing a view using VBA.
This is my code:
Dim cmd As New ADODB.Command
cmd.ActiveConnection = CurrentProject.Connection
cmd.CommandText = "CREATE VIEW TEST AS SELECT * FROM MYTABLE"
cmd.Execute
Set cmd = Nothing
DoCmd.OpenView "TEST", acNormal, acEdit
When I...
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.