The Error code 3251 ?

T

TF

Hello,
I try to list the Views in a ADP project, (the server side Sql server 2k or
MSDE 2k),
I obtain this error code 3251. When I list the SP every thnig is good.
My code is
--->>>>>>>>>>>Code start
Dim cat As New ADOX.Catalog
Dim cdView As New ADODB.Command

Set cat.ActiveConnection = CurrentProject.Connection
Set cdView.ActiveConnection = CurrentProject.Connection
' Create new select Query
cdView.CommandText = Req
cat.Views.Append "V_test", cdView
cat.Views.Refresh
Set cat = Nothing
Set cdView = Nothing
<<<<<<<--- code end
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top