G
Georgios Liakopoulos
Hello everyone,
I converted Access 2003 mdb file to accdb successfully. But then, when I
run the following code (it runs when entering a search form) I get a
'Run-time error ... Object invalid or no longer set' message. This was
not happening in Access 2003. Can anyone help?
Set cat = New ADOX.Catalog
Set cat.ActiveConnection = CurrentProject.Connection
Set cmdsearchsubform = New ADODB.Command
SQLString = "SELECT * FROM FullQuery;" '----full query is a overview
query of fields from different
tables---
cmdsearchsubform.CommandText = SQLString
viewname = "viewsearchsubform" & usercode '---different users can run
their own searches----
*cat.Views.Append viewname, cmdsearchsubform '---code to create the
query---
cat.Views.Refresh
The debugger stops in the line with the asterisk (off course there is no
asterisk in the code!)
Thanks for reading
I converted Access 2003 mdb file to accdb successfully. But then, when I
run the following code (it runs when entering a search form) I get a
'Run-time error ... Object invalid or no longer set' message. This was
not happening in Access 2003. Can anyone help?
Set cat = New ADOX.Catalog
Set cat.ActiveConnection = CurrentProject.Connection
Set cmdsearchsubform = New ADODB.Command
SQLString = "SELECT * FROM FullQuery;" '----full query is a overview
query of fields from different
tables---
cmdsearchsubform.CommandText = SQLString
viewname = "viewsearchsubform" & usercode '---different users can run
their own searches----
*cat.Views.Append viewname, cmdsearchsubform '---code to create the
query---
cat.Views.Refresh
The debugger stops in the line with the asterisk (off course there is no
asterisk in the code!)
Thanks for reading