Thanks for your reply.
I've enought rights to create the view.
In fact the view was created correctly but is not visible until I refresh the Views Window.
I think is a problem about the refresh of the database schema.
I've tried calling the Application.RefreshDatabaseWindow method but it...
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.